I know you said that the app name and the project name need to be the same. What about the bundle ID found in your app’s info.plist and the bundle id that is used when your create your Xcode project. Do these have to be exactly the same (e.g. case sensitive)?
Finally, yes deleting all devices and recreating an iPhone 5 one in xcode and the app started properly. I still can’t get rid of the black bars on the side though. And the launch image is loaded sideways for some reason.
Basically this works because you’re telling Xcode what the names of your launcher images are. I’m going to recommend staying with “Default-” for the file names since your apps can still work on iOS 6 and it only looks for specific file names.
Thanks for the legwork in figuring this out.
Rob
ahh okay, yes should keep them named as Default !
I got too excited when seeing the app running in Simulator so I was testing them with a different set of images.
Thanks Rob !
Holy smokes, took me 2 hours but it finally works… Thanks a lot for your tutorial. There’s 2 other things to watch:
- Build for the Iphone 5 in Corona.
- Build the new project you create in Xcode for the Iphone 5 as well.
Hi guys, I’m having some difficulty getting this to work. Hopefully you can help me out.
When you guys create a new project, is it an empty project? or did you use the template provided by Xcode 6 (like ‘Game’).
I tried Empty Project but it has nothing to compile. I tried ‘Game’, manage to locate the mygame.app under Developers folder etc and replace the .app in there with the one I compiled from Corona (both project having the exact same name) but it doesn’t work under Xcode simulator (blank white screen with Carrier, time and battery bar).
Am I doing anything wrong and do I have to update the build.settings with UILaunchImages like what newbieLUA did?
Thanks in advance
Edit : I manage to get my game working under iPhone 5 simulator in Xcode but switching the hardware to 5s or 6, my game icon didn’t appear. Any ideas?
@flipboxgames,
In XCode 6 I created a “Single Page Application”, and then you also need to copy your game into each (for the lack of better term) “virtual devices”.
Library/Developer/CoreSimulator/Devices/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/data/Containers/Bundle/Application/APPAPPAPP-APPX-APPX-APPX-APPAPPAPPAPPAPP/MyApp.app
“xxxxx” represents each virtual devices it creates
“appappapp” represents the actual APP folder XCode creates as build+compile
You need one of those app in each virtual device you’re testing
Hope this helps!
…and for blank-white-screen, you can check the debug (“Debug” → “Open System Log…”) and see if there’s any runtime error from the Corona app causing the freeze-up/hang
@flipboxgames,
I’ve seen another topic about this and for the moment, your app can only work on the Iphone 5 because it’s the only device that fits both simulators (Corona simulator and IOS simulator). I didn’t try with any Ipad, maybe it works… Here’s the link:
http://forums.coronalabs.com/topic/51497-switching-between-devices-in-ios-simulator/?hl=xcode
Hope this helps!
Thank you both. I will give it another try in a bit and post back the results.
Edit: It worked! Now to submit my game to the AppStore
I was able to get my app to run in the IOS simulator only if I used iPhone 5. Were you able to change the Device in the IOS Simulator to iPhone 5s, 6 and 6 plus? I am using IOS simulator v8.0 (550.1) and it only provides 5s and 6 plus. What version are you using where you saw just iPhone 6 and were able to get your app to run with this setting as well?
@flixboxgames
Did you use the latest public build 2393a and were able to get your Corona app running on the Xcode simulator using different device types (e.g. iPhone 5, iPhone 5s, 6 and 6 plus)?
Sounded like you may need to add in additional “virtual” devices in XCode.
Try going to : XCode, Devices, “+” (Bottom left of screen), add a new iOS Simulator
Yeap, I’m using the latest public build with the latest version of xCode. Attached a picture below. As you can see my game icon appears in both iPhone 6 and 6 Plus simulator. From there I just run it.
Edit: That’s funny. I didn’t have make any changes to xCode. From the start I was able to select between all the iOS devices including iPhone 6 and 6 plus.
I am using Xcode 6.0.1 (6A317) which one are you using? I can also get my App and my game icon to show up in the iPhone 6 plus simulator, but if I click my app the launch image is correctly shown but then my app is shutdown and simulator goes back to just show my game icon. When I open the system log I don’t see anything other than my app forced itself to shutdown. If I try other devices (e.g. iPad) my app icon doesn’t even show. All I do is change the device type directly in the IOS simulator.
@steve_caple
I’m using the same Xcode version (6A317) and seems like I now face the same problem like you. When I tried running my game it too crashed and went back to the ‘Home’ screen. I am pretty sure it worked before, that’s how I knew my graphics were fine for iPhone 6 and 6 Plus. Whether or not it actually worked is another matter, as I don’t have any of the new iOS devices to test things out.
Seems like there’s a new version of Xcode. Will try updating it and report back to see if it fixes the problem.
Yours still working fine?
Edit : things gotten worse with Xcode Version 6.1 (6A1052d). My game icon doesn’t appear anymore on any of the simulators.
@flipboxgames, the only thing I did after updating from XCode 6.0.1 to XCode 6.1 , is that I had to delete all my virtual devices and re-create them again.
Now that I remembered, I was having some auto-quit problems too.
So I deleted the device, added it back again, and rebuilt my XCode (blank) project and replaced the .app file afterwards.
This worked for me.
I thought that the whole purpose of running the commands:
- xcrun simctl list // returns list of devices and their associated UDID
- open -a “IOS Simulator” --args -CurrentDeviceUDID UDID_of_specific_device
- // First change directories to where Corona simulator wrote your .app file for Xcode simulator
- xcrun simctl install booted “Your app name”.app
- Then click on app with in the IOS simulator or executing xcrun simctl launch booted "bundle identifier"
Was that you didn’t even need to run Xcode and create a dummy project. Is that not correct? I have tried both on Xcode 6.0.1 and Xcode 6.1 and able to get some devices to work (iPhone 4S, iPhone 5, iPad 2, and iPad Retina). On the other devices, I see my app icon, but when I click it I see my launch image but then something blows up and then I only see app icon again on the home page.
@steve_capie, I didn’t follow those particular procedures (command line stuff) written above.
I pretty much click-and-dragged my way through to get my stuff running in the iOS Simulator.
Mine is a longer and less efficient process , but it’s more visual for myself to manage.