the sooner the best !
Thanks
st
I have the same exact problem as spacewolf posted where I cannot build for xcode 6 simulator but my app runs fine on the iphone. I’m really new to corona (but not new to xcode/objc) and I figured I was just doing something wrong, so I’m really glad to see someone else have this issue :) Its actually the exact same error he posted.
I’m using corona starter version 3.0.0 Build 2014.2393, Xcode 6.0/OSX 10.9.4, and it runs fine in Corona Simulator and runs fine on device (I’m running iOS 7 on iphone 5S). It gives me the “Unexpected build error (check the Simulator console for messages)” which gives me that same terminal dump spacewolf got
How does everyone here get their launch images and screenshots when you cant even run it in the simulator? I like corona in the brief time I’ve used it, but of course thats only if it actually works because this error stops you dead in the water.
@x55. the problem spacewolf was having occurred because of an issue we had with plugin builds. This was fixed in public build 2393 and recent daily builds and is no longer a problem as far as we know. I assume your projects includes plugins, so which plugins are you using? As a test you could comment out each of plugins in the build.settings file until the build error goes away. Please us know the results if you find it’s related to a specific plugin.
Unfortunately once the build error is resolved you still won’t be able to use the Xcode Simulator because of Apple’s changes to Xcode 6. Apple changed the way Xcode Simulator is launched and it’s not compatible with public build 2393. You need daily build 2446 or higher for the Xcode Simulator start fix. We are looking at doing a new public build but we are waiting until we get all the existing iOS 8 problems resolved first. We don’t have a schedule for when it will be released.
Hi all,
my console as well shows this (same) error using public release 2393 on a Mac 10.9.5, with Xcode 6, building the Hello World for the iOS simulator:
2014-10-02 18:41:03.409 ios-sim[29860:303] -[__NSArrayM localizedDescription]: unrecognized selector sent to instance 0x7fa043600620
2014-10-02 18:41:03.410 ios-sim[29860:303] *** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[__NSArrayM localizedDescription]: unrecognized selector sent to instance 0x7fa043600620’
*** First throw call stack:
(
0 CoreFoundation 0x00007fff8c0b725c __exceptionPreprocess + 172
1 libobjc.A.dylib 0x00007fff912d8e75 objc_exception_throw + 43
2 CoreFoundation 0x00007fff8c0ba12d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x00007fff8c015272 ___forwarding___ + 1010
4 CoreFoundation 0x00007fff8c014df8 _CF_forwarding_prep_0 + 120
5 ios-sim 0x000000010cd4ae41 -[iPhoneSimulator LoadSimulatorFramework:] + 245
6 ios-sim 0x000000010cd4c8f8 -[iPhoneSimulator runWithArgc:argv:] + 2271
7 ios-sim 0x000000010cd4ccca main + 101
8 ios-sim 0x000000010cd4acfc start + 52
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Is there any chance to have a public build running for simulator ?
Any schedule for that ?
It is becoming now a major issue to me.
Thanks for any help to this sad starter !
st
Tom, thanks for the response. You are correct it was a plugin causing it, the iad plugin was the issue and commenting it out got rid of this error.
I have found a work around for this somewhere else when is was looking for the same issue in flash:
Build your app, it will fail with the error but it will generate an .ipa file in the output folder
install ios-sim (brew install ios-sim) see: https://github.com/phonegap/ios-sim
rename the .ipa file to a .zip and unpack it
run the following command: ios-sim launch path/to/.app/file --devicetypeid com.apple.CoreSimulator.SimDeviceType.iPad-2 (you can change the device type to whatever you want!)
enjoy your app running on the simulator
I did as per your instructions.
The simulator launches and tries to install the app. The app has been installed but does not launch. I see the icon in the simulator but I log this on terminal:
iMacSt-3:Release stefanotosi$ ./ios-sim launch /Users/stefanotosi/Desktop/popchase --devicetypeid “com.apple.CoreSimulator.SimDeviceType.iPhone-6, 8.0”
Session could not be started: Error Domain=DTiPhoneSimulatorErrorDomain Code=2 “Simulator session timed out.” UserInfo=0x7fbe12c39a40 {NSLocalizedDescription=Simulator session timed out.}
iMacSt-3:Release stefanotosi$
The Xcode simulator issue is becoming IMHO one of the most urgent fixes needed. Any news on a next public fix release date ?
Time presses strongly.
Please advise.
Thank you
We see the Xcode Simulator time-out issue even with our current Daily Builds. Seems to be an issue with Xcode Simulator. You can generally start the app by swiping the Xcode Simulator screen and clicking on your app.
Any news yet on a pubic build ? Its been a month now.
@st.tosi, does your app run on a real iOS device? Failure to run on the Xcode Simulator doesn’t always means it’s an issue with Corona. Bugs in your app can result in the same behavior. You should always test on a real device to verify and review the console output to make sure there are no errors in your code. You should also enable runtime error messages on your device when debugging code (they are off by default). You enable the runtime error mode in the config.lua.
http://docs.coronalabs.com/guide/basics/configSettings/index.html#runtime-errors
If you still think there is a problem running the simulator, try building and running a sample project (e.g., HelloWorld) on the Xcode Simulator.
We don’t have a release date for the next public release because we are still sorting out issue related to iOS 8.1 and iPhone 6. You can always pay to be a Pro user and get access to all our daily builds.
I am now running Yosemite with (always) corona public build 2393.
I did again as per your suggestion: build Corona for Xcode simulator/converted the .app to a .ipa/renamed .zip/unpacked and in the Payload folder my .app file is created.
I then run
ios-sim launch /Users/stefanotosi/Desktop/Payload/myAppName.app --devicetypeid “com.apple.CoreSimulator.SimDeviceType.iPhone-6, 8.1”
The app is loaded in the iPhone6 / iOS8.1(12B411) simulator. The app shows the default image and then crashes.
The console log shows:
Oct 28 16:42:57 iMacSt-2 assertiond[18851]: assertion failed: 14A389 12B411: assertiond + 11523 [3F572A0B-7E12-378D-AFEE-EA491BAF2C36]: 0x1
Oct 28 16:43:00 iMacSt-2 PopChase[18924]: assertion failed: 14A389 12B411: libxpc.dylib + 59417 [464E62EA-4CF2-3FEF-9C17-692AD8D66AA8]: 0x7d
Oct 28 16:43:00 iMacSt-2 com.apple.CoreSimulator.SimDevice.B68C61D9-576C-4D88-8BE7-E34247ADD5E4.launchd_sim[18836] (com.apple.imfoundation.IMRemoteURLConnectionAgent): The _DirtyJetsamMemoryLimit key is not available on this platform.
My app works fine on an iPhone 5/iOS8.1 device.
I need to run in the simulator to check for iPhone6 and 6Plus graphics as well as getting the screenshots for ITC.
Can you help ?
any news on an update on public build ?
Thank you all
st
I’m also getting an error with the openssl plugin now, even with the latest daily build when building for the XCode Simulator. Device builds are finishing, but the resulting build will not load on the device (i.e., install will fail). Building without the openssl plugin does work with the same exact code (just taking the plugin out of build settings), though of course I get a runtime error when I run the app due to lack of the library. My wild guess is that this might have something to do with the new 64-bit format? Though I got this error even using an older corona build, prior to 64-bit support, I believe.
Just checked: It does seem to work in XCode 5.02, by the way.
Environment:
Mac OSX 10.9.5 Corona build: 2015.2533 (2015.1.9) XCode: Version 6.1.1 (6A2008a)
Error:
1/10/15 4:58:34.856 PM Corona Simulator[22822]: Runtime error /Users/xx/Dropbox/app/xxx.app/.build/libtemplate/Builder.lua:310: \<error\>{"status":256,"message":"ld: warning: ObjC object file (/Users/xx/Dropbox/app/xxx.app/.build/libtemplate/libtemplate.a(main.o)) was compiled for iOS Simulator, but linking for MacOSX\nUndefined symbols for architecture i386:\n \"\_fwrite$UNIX2003\", referenced from:\n \_int\_rsa\_verify in libplugin.openssl.a(rsa\_sign.o)\n \_test\_rc4\_init\_key in libplugin.openssl.a(eng\_openssl.o)\n \_TXT\_DB\_read in libplugin.openssl.a(txt\_db.o)\n \_read\_string in libplugin.openssl.a(ui\_openssl.o)\n \_read\_string\_inner in libplugin.openssl.a(ui\_openssl.o)\n \_ENGINE\_load\_gost in libplugin.openssl.a(gost\_eng.o)\n \_dtls1\_retransmit\_buffered\_messages in libplugin.openssl.a(d1\_both.o)\n ...\nld: symbol(s) not found for architecture i386\nclang: error: linker command failed with exit code 1 (use -v to see invocation)"}\</error\> stack traceback: [C]: ? [C]: in function 'assert' /Users/xxx.app/.build/libtemplate/Builder.lua:310: in function 'checkError' /Users/xxx/app/xxx.app/.build/libtemplate/Builder.lua:333: in function 'build' ?: in function 'buildExe' ?: in function \<?:796\>
I also funda galaxy note 4 was about to post this. My xcode simulator never opens funda galaxy A7 after build process.
Hi Tom. Another month, anything yet?
We are close. We are madly testing away.
Rob
Thanks for the update Rob
I’m also getting an error with the openssl plugin now, even with the latest daily build when building for the XCode Simulator. Device builds are finishing, but the resulting build will not load on the device (i.e., install will fail). Building without the openssl plugin does work with the same exact code (just taking the plugin out of build settings), though of course I get a runtime error when I run the app due to lack of the library. My wild guess is that this might have something to do with the new 64-bit format? Though I got this error even using an older corona build, prior to 64-bit support, I believe.
Just checked: It does seem to work in XCode 5.02, by the way.
Environment:
Mac OSX 10.9.5 Corona build: 2015.2533 (2015.1.9) XCode: Version 6.1.1 (6A2008a)
Error:
1/10/15 4:58:34.856 PM Corona Simulator[22822]: Runtime error /Users/xx/Dropbox/app/xxx.app/.build/libtemplate/Builder.lua:310: \<error\>{"status":256,"message":"ld: warning: ObjC object file (/Users/xx/Dropbox/app/xxx.app/.build/libtemplate/libtemplate.a(main.o)) was compiled for iOS Simulator, but linking for MacOSX\nUndefined symbols for architecture i386:\n \"\_fwrite$UNIX2003\", referenced from:\n \_int\_rsa\_verify in libplugin.openssl.a(rsa\_sign.o)\n \_test\_rc4\_init\_key in libplugin.openssl.a(eng\_openssl.o)\n \_TXT\_DB\_read in libplugin.openssl.a(txt\_db.o)\n \_read\_string in libplugin.openssl.a(ui\_openssl.o)\n \_read\_string\_inner in libplugin.openssl.a(ui\_openssl.o)\n \_ENGINE\_load\_gost in libplugin.openssl.a(gost\_eng.o)\n \_dtls1\_retransmit\_buffered\_messages in libplugin.openssl.a(d1\_both.o)\n ...\nld: symbol(s) not found for architecture i386\nclang: error: linker command failed with exit code 1 (use -v to see invocation)"}\</error\> stack traceback: [C]: ? [C]: in function 'assert' /Users/xxx.app/.build/libtemplate/Builder.lua:310: in function 'checkError' /Users/xxx/app/xxx.app/.build/libtemplate/Builder.lua:333: in function 'build' ?: in function 'buildExe' ?: in function \<?:796\>
I also funda galaxy note 4 was about to post this. My xcode simulator never opens funda galaxy A7 after build process.