Build 2393a: iOS8 & iPhone 6/6+ Launch Images Solved ! (w/ XCode 6 iOS Simulator screenshots)

Hello , I hope these info are helpful to some of the fellas here.

I finally got my launch images in order and have them working in the XCode 6 iOS Simulator.

XCode 6.0.1 (6A317), iOS 8 Simulator: iPhone 4S/5S/6/6+ , iPad 2 / Retina. 

Please see attached screenshots for my build.settings info, file naming, and screenshots of their appearance in the Simulator.

I figured if it shows up fine in the XCode iOS Simulator, then I’m confident it won’t be much of a different than the actual devices…

As far as getting your build to work for XCode 6’s iOS Simulator, I did the following:

  1. Using Corona SDK, build for “Xcode Simulator”. It will show errors and will not launch the iOS Simulator, but I did ended up with an .app file, good enough to proceed (I received the NSInvalidArgumentException error myself). If Corona didn’t spit out .app file, then this method won’t work…

  2. Create a new project in Xcode 6, then just build+run it to boot off iOS Simulator

  3. Go to these directories / path finding instructions (http://forums.coronalabs.com/topic/50523-how-to-test-on-ios6-simulator-in-xcode/

  4. Replace your Corona-built .app file into your XCode-built project directory (#2)

  5. Make sure your Corona-built .app is the same name as the project you named in step #2.

  6. Reload your Simulator (or switch between hardware is sufficient)

  7. Launch app! My game appears just fine and the environment reports back 1334x750 , 2208x1242 and I was able to use 2x & 4x (yes iPad Retina) assets.

I hope these will help save some time for folks out there and, thanks to the Corona staff keep on hammering on these iOS8 issues for us devs.

Looking forward for more official answers + updates soon.

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. :slight_smile:

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: 

  1. Build for the Iphone 5 in Corona.
  2. Build the new project you create in Xcode for the Iphone 5 as well.

@newbieLUA @leo_pat_123

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  :slight_smile:

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!
 

@newbieLUA @leo_pat_123

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  :slight_smile:

 
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 

@steve_capie

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. 

@newbieLUA

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.

@newbieLUA

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.

@newbieLUA

Would you mind to provide your detailed instructions in what you did here?

@steve_capie, the steps I used are the same as posted at the very top of this thread. I double checked it just now and am sure those are the same steps I am still using.

http://forums.coronalabs.com/topic/51430-build-2393a-ios8-iphone-66-launch-images-solved-w-xcode-6-ios-simulator-screenshots/?p=266697