Switching between devices in iOS simulator

Xcode 6.0.1

Corona SDK 2014.2458

We’re back to it not working for borderless skins.

When building for Xcode simulator, it uses the correct device if the last used setting in Corona was skinned, but when a borderless setting was used it always chooses the iPhone 4S.

Mort, 1080x1920 is correct for OpenGL based apps which is what Corona Labs makes.  The 1242x2208 is correct for UIKit apps, which the Xcode simulator assumes your doing UIKit.

Rob

Hmmm, it’s working for me.

What do you see in your console when the iOS Simulator starts?  Something like:

Using Xcode iOS Simulator from Xcode 6.0.1 + '/Applications/CoronaSDK/Corona Simulator.app/Contents/Resources/ios-sim' launch /Users/perry/Desktop/StatusBarTest.app --devicetypeid 'com.apple.CoreSimulator.SimDeviceType.iPhone-6, 8.0'

@Perry

I was having this problem for while but didn’t really mind. I hardly reboot my Mac, but I installed Yosemite GM candidate 2 on my Mac today and after rebooting everything works.

@Rob, Okay. Thanks for the distinction. I likely misread what you posted in the other thread. In any case, I’m glad I now know why the two solutions act differently. 

Does it matter what device you built for in the Corona Simulator?  In the Corona simulator I chose the iPhone 5 and built for XCode.  I followed your commands and was able to launch Xcode simulator for 6 plus device.  I also see my app on the screen.  When I click on my App it begins to Open and correctly shows my launch image but then shuts down.  In looking at the system logs I see the following:

Oct 22 17:25:02 — last message repeated 1 time —

Oct 22 17:25:02 sdgl12893de4e assertiond[1243]: assertion failed: 13F34 12A365: assertiond + 11619 [03CE1BE5-ACCB-3989-A453-41D167A25E66]: 0x1

Oct 22 17:25:02 sdgl12893de4e com.apple.CoreSimulator.SimDevice.906302C8-1E39-4A04-B581-D2CD760416E2.launchd_sim[1228] (com.apple.imfoundation.IMRemoteURLConnectionAgent): The _DirtyJetsamMemoryLimit key is not available on this platform.

Oct 22 17:25:02 sdgl12893de4e joggingtrainer[1445]: assertion failed: 13F34 12A365: libxpc.dylib + 59417 [75E30F22-514B-3A20-B82C-EDA43AF5C35C]: 0x7d

Oct 22 17:25:02 sdgl12893de4e assertiond[1243]: assertion failed: 13F34 12A365: assertiond + 11619 [03CE1BE5-ACCB-3989-A453-41D167A25E66]: 0x1

Oct 22 17:25:02 sdgl12893de4e.local.tld SpringBoard[1239]: [MPUSystemMediaControls] Updating supported commands for now playing application.

Oct 22 17:25:02 sdgl12893de4e com.apple.CoreSimulator.SimDevice.906302C8-1E39-4A04-B581-D2CD760416E2.launchd_sim[1228] (UIKitApplication:com.capievideo.joggingtrainer[0xdf7d][1445]): Service exited with abnormal code: 1

Is there anything that I am missing to do here?

@steve

It doesn’t matter which device you had active in Corona Simulator. 

The important thing is that you build for Xcode Simulator and set the SDK to 8.1 (or 8.0) when building. 

(I see that you’re Starter. I’m not sure if the public build might be a problem)

Also, It looks like you’re building a non-game app right?

Are you using any features that might only be available on an actual device?

I am using Xcode 6.0.1 (6A317) and had set the Xcode deployment target to 8.0.  The app only uses basic functionality such as audio (e.g. audio.play), sprite animation, and vector graphics using display.newRect, display.newImage, etc.  I was trying to use the Xcode simulator to display my app on the iPhone 6 and 6 plus.  I also noticed with this version of Xcode, I didn’t see an option for choosing the iPhone 6 (only the iPhone 6 plus).

If I can get this to work can I use the screenshots from the IOS simulator to submit as part of the App store submission?

If I can get this to work can I use the screenshots from the IOS simulator to submit as part of the App store submission?

You sure can. That’s what I do for devices I don’t own (i.e. iPhone 6 / 6 Plus).

It’s very simple and super-quick. Just use Command-S in the iOS simulator to take snapshot  :smiley: .

@ingemar

Did you see anything else that I may have missed which would cause this issue?  Like I said, it works fine for iPhone 5, but if I change it another device it does not work.  Also, where is the device option for iPhone 6 in the IOS  simulator?

@steve

No I can’t think of anything however I’m not sure if it has something to do with the public build or not.

It’s weird that the iPhone 6 is missing, but you should be able to add it back yourself.

• Start iOS simulator

• Choose Hardware->Device->Manage devices…

• Click ‘+’ in the lower left of the window

• Select the device-type and iOS version and click Create.

If you’re using the daily build (2393) and Xcode 6 there is an issue with apps running on the Xcode Simulator. Corona code signs the apps and it seems this now fails with Xcode 6. This has been fixed in our daily builds. If you’re having problems and can’t use the daily builds, you will need to wait for the next public release to use the Xcode Simulator. (We don’t  have a release date for the next release.)