Mac版cocosIDEからiOSシミュレータが起動しない。

I’m making an app in cocos2d-JS using cocosIDE.
error comes out and when I try to debug an iOS simulator.
Can you resolve this cause?


The following message had been referred to the console.

2014-10-18 04:25:24.541 ios-sim[1900:d0b] -[__NSArrayM localizedDescription]: unrecognized selector sent to instance 0x7f8c29c11370
2014-10-18 04:25:24.543 ios-sim[1900:d0b] *** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[__NSArrayM localizedDescription]: unrecognized selector sent to instance 0x7f8c29c11370’
*** First throw call stack:
(
0 CoreFoundation 0x00007fff9733525c __exceptionPreprocess + 172
1 libobjc.A.dylib 0x00007fff93891e75 objc_exception_throw + 43
2 CoreFoundation 0x00007fff9733812d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x00007fff97293272 forwarding + 1010
4 CoreFoundation 0x00007fff97292df8 _CF_forwarding_prep_0 + 120
5 ios-sim 0x00000001026b6e29 -[iPhoneSimulator LoadSimulatorFramework:] + 245
6 ios-sim 0x00000001026b88e0 -[iPhoneSimulator runWithArgc:argv:] + 2271
7 ios-sim 0x00000001026b8cb2 main + 101
8 ios-sim 0x00000001026b6ce4 start + 52
)
libc++abi.dylib: terminating with uncaught exception of type NSException

If you understand, please tell me.

The old version of the simulator can’t work with Xcode 1.6
if you download the latest cocos2d-x from github, it should work.

or you can use a new version of ios-sim

It is the new version, but it is not work.
my development environment is as follows:

MacOS:10.9.5
Xcode: 6.0.1 (6A317)
iOS simulator:Version 8.0 (550.1)
Cocos Code IDE:V1.0.0.RC2
Cocos2d-JS:v3.0

Try download the ios-sim here https://github.com/phonegap/ios-sim
If you use homebrew, you can install it with brew install ios-sim

And replace the ios-sim under your with the one under your cocosIDE

I installed the ios-sim. And I replaced those in the cocosIDE, but the same error came out.
Would some other cause?

Can you try running the ios-sim under your cocos IDE project, and see if you have any exceptions?

I tried running the IOS-SIM under the Cocos IDE project, but the same error came out.
Because you can not understand much English, I’m sorry my answer is if you are wrong.

I had the same error, and I believe from the log file it’s because of ios-sim have some problem.
Can you try run ios-sim start

After running the ios-sim, the following message came out.


2014-10-22 07:29:15.089 ios-sim[11403:507] -[__NSArrayM localizedDescription]: unrecognized selector sent to instance 0x7f8620e005d0
2014-10-22 07:29:15.090 ios-sim[11403:507] *** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[__NSArrayM localizedDescription]: unrecognized selector sent to instance 0x7f8620e005d0’
*** First throw call stack:
(
0 CoreFoundation 0x00007fff97d0325c __exceptionPreprocess + 172
1 libobjc.A.dylib 0x00007fff9425fe75 objc_exception_throw + 43
2 CoreFoundation 0x00007fff97d0612d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x00007fff97c61272 forwarding + 1010
4 CoreFoundation 0x00007fff97c60df8 _CF_forwarding_prep_0 + 120
5 ios-sim 0x000000010cf2f439 -[iPhoneSimulator LoadSimulatorFramework:] + 245
6 ios-sim 0x000000010cf30f27 -[iPhoneSimulator runWithArgc:argv:] + 2270
7 ios-sim 0x000000010cf312e9 main + 101
8 ios-sim 0x000000010cf2f2f4 start + 52
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Abort trap: 6

I fixed this problem following this post, hope it helps :smile:

http://stackoverflow.com/questions/24154244/unable-to-start-ios-sim-on-yosemite

error had come out version of ios-sim that you installed in “brew install ios-sim” because it was 1.9.0.
It was resolved without problems Once you have downloaded the 2.0.1 from ‘https://downloads.sf.net/project/machomebrew/Bottles/ios-sim-2.0.1.mavericks.bottle.tar.gz’.

Thank you for helping me.

Cocos Code IDE 1.0.1 have been able to support iOS simulator for Xcode6. Please use this latest version.

The latest version worked without problems.
Thank you.