Testing .app in xCode 7 fails

Hey Coronaville!

Can you please give me a hint on following problem  :smiley:

I have build myApp.app together with myApp.app.dSYM file which works on iPhone.

But I wanted to test it in iOs Simulator.

So I did the following:

  1. Copied myApp.app together with myApp.app.dSYM to this file path: Contents > Developer > Platforms > iPhoneSimulator.platform > Developer > SDKs > iPhoneSimulator9.0.sdk > Applications.

  2. Opened iOs Simulator.

  3. Clicked on myApp in Simulator.

  4. Simulator just briefly goes to Landscape black screen and immediately returns back to Home Screen.

What is the problem, why my app does not work in Simulator (and it works on actual device)?

Bad Internet connection maybe?

Tnx!

I think the way you test your app on simulator is by clicking ‘Launch in Simulator’ on your build screen. Before you hit ‘Build’, pick simulator on the corona build window. 

The iOS Simulator uses X86 code and the device uses ARM code and they are not compatible. You need to build for the Xcode Simulator and it will automatically copy the files and start the iOS Simulator. You can’t copy the files and have it work.

Hi Tom,

Thanks.

I have tried several times to select “Open in iOS Simulator” when building my app (in Corona).

It almost never works (in Simulator).

Simulator opens, but no fire there :slight_smile:

Surprisingly app works OK on actual device.

But I would like to test it in Simulator, due to wide variety of device available…

I have had similar issues where the simulator outright does not work or when it does, it runs at like 10 frames a sec. But like you mentioned, on actual device it runs perfect.

You can see here a Corona log error console that appears when I select that app runs in iOS Simulator:

Nov 14 04:22:42.790: iOS build succeeded

Using Xcode iOS 9.1 Simulator from Xcode 7.1.1

+ ‘/Applications/CoronaSDK/Corona Simulator.app/Contents/Resources/ios-sim’ launch ‘/Users/user0/Desktop/Test/untitled folder 2/Moyapp.app’ --family iphone --retina --tall

2015-11-14 16:22:58.555 ios-sim[17284:40264] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-9073/DVTFoundation/PlugInArchitecture/PlugInManager/DVTPlugInManager.m:257

Details:  Requested but did not find extension point with identifier Xcode.DVTFoundation.DevicePlatformMapping

Object:   <DVTPlugInManager: 0x7f937300bc40>

Method:   -extensionPointWithIdentifier:

Thread:   <NSThread: 0x7f9370e033f0>{number = 1, name = main}

Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.

You should remove the file you copied to the Xcode iOS Simulator applications directory.  It wont work for the reasons mentioned by Tom and may be confusing matters.  You might need to choose Simulator > Reset Content and Settings… in the Xcode iOS Simulator to get things back to normal.

Then, download the latest Daily Build and select the Open in Xcode iOS Simulator option when you build your app.

I think the way you test your app on simulator is by clicking ‘Launch in Simulator’ on your build screen. Before you hit ‘Build’, pick simulator on the corona build window. 

The iOS Simulator uses X86 code and the device uses ARM code and they are not compatible. You need to build for the Xcode Simulator and it will automatically copy the files and start the iOS Simulator. You can’t copy the files and have it work.

Hi Tom,

Thanks.

I have tried several times to select “Open in iOS Simulator” when building my app (in Corona).

It almost never works (in Simulator).

Simulator opens, but no fire there :slight_smile:

Surprisingly app works OK on actual device.

But I would like to test it in Simulator, due to wide variety of device available…

I have had similar issues where the simulator outright does not work or when it does, it runs at like 10 frames a sec. But like you mentioned, on actual device it runs perfect.

You can see here a Corona log error console that appears when I select that app runs in iOS Simulator:

Nov 14 04:22:42.790: iOS build succeeded

Using Xcode iOS 9.1 Simulator from Xcode 7.1.1

+ ‘/Applications/CoronaSDK/Corona Simulator.app/Contents/Resources/ios-sim’ launch ‘/Users/user0/Desktop/Test/untitled folder 2/Moyapp.app’ --family iphone --retina --tall

2015-11-14 16:22:58.555 ios-sim[17284:40264] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-9073/DVTFoundation/PlugInArchitecture/PlugInManager/DVTPlugInManager.m:257

Details:  Requested but did not find extension point with identifier Xcode.DVTFoundation.DevicePlatformMapping

Object:   <DVTPlugInManager: 0x7f937300bc40>

Method:   -extensionPointWithIdentifier:

Thread:   <NSThread: 0x7f9370e033f0>{number = 1, name = main}

Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.

You should remove the file you copied to the Xcode iOS Simulator applications directory.  It wont work for the reasons mentioned by Tom and may be confusing matters.  You might need to choose Simulator > Reset Content and Settings… in the Xcode iOS Simulator to get things back to normal.

Then, download the latest Daily Build and select the Open in Xcode iOS Simulator option when you build your app.