Error emulating IOS exit code 134


#1

Hi

I have problems emulating my ionic app on IOS since the last update of xcode

This is what I’m getting:

** BUILD SUCCEEDED **

2014-09-24 11:14:19.877 ios-sim[3748:507] stderrPath: /Users/franciscolopezhernandez/Documents/github/BncALM/bnc/platforms/ios/cordova/console.log
2014-09-24 11:14:19.878 ios-sim[3748:507] stdoutPath: /Users/franciscolopezhernandez/Documents/github/BncALM/bnc/platforms/ios/cordova/console.log
2014-09-24 11:14:19.918 ios-sim[3748:507] -[__NSArrayM localizedDescription]: unrecognized selector sent to instance 0x7fdce9d02ab0
2014-09-24 11:14:19.919 ios-sim[3748:507] *** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[__NSArrayM localizedDescription]: unrecognized selector sent to instance 0x7fdce9d02ab0’
*** First throw call stack:
(
0 CoreFoundation 0x00007fff9109a25c __exceptionPreprocess + 172
1 libobjc.A.dylib 0x00007fff94f9fe75 objc_exception_throw + 43
2 CoreFoundation 0x00007fff9109d12d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x00007fff90ff8272 forwarding + 1010
4 CoreFoundation 0x00007fff90ff7df8 _CF_forwarding_prep_0 + 120
5 ios-sim 0x0000000109013e29 -[iPhoneSimulator LoadSimulatorFramework:] + 245
6 ios-sim 0x00000001090158e0 -[iPhoneSimulator runWithArgc:argv:] + 2271
7 ios-sim 0x0000000109015cb2 main + 101
8 ios-sim 0x0000000109013ce4 start + 52
9 ??? 0x000000000000000b 0x0 + 11
)
libc++abi.dylib: terminating with uncaught exception of type NSException
/Users/franciscolopezhernandez/Documents/github/BncALM/bnc/platforms/ios/cordova/run: line 158: 3748 Abort trap: 6 ios-sim launch “$SIMULATOR_APP_PATH” --stderr “$CORDOVA_PATH/console.log” --stdout “$CORDOVA_PATH/console.log” $TARGET_FLAG --exit
Error: /Users/franciscolopezhernandez/Documents/github/BncALM/bnc/platforms/ios/cordova/run: Command failed with exit code 134
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Process.ChildProcess._handle.onexit (child_process.js:810:5)

Any ideas?

Kind regards


#2

Hi,

I have exactly the same problem. I’ve try updating command line tools for xcode 6 but the problem persist.

Also tried:

$ ios-sim start from a terminal and have this:

2014-09-24 19:54:09.695 ios-sim[6045:507] -[__NSArrayM localizedDescription]: unrecognized selector sent to instance 0x7f9625800330
2014-09-24 19:54:09.696 ios-sim[6045:507] *** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[__NSArrayM localizedDescription]: unrecognized selector sent to instance 0x7f9625800330’
*** First throw call stack:
(
0 CoreFoundation 0x00007fff9512825c __exceptionPreprocess + 172
1 libobjc.A.dylib 0x00007fff8dd69e75 objc_exception_throw + 43
2 CoreFoundation 0x00007fff9512b12d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x00007fff95086272 forwarding + 1010
4 CoreFoundation 0x00007fff95085df8 _CF_forwarding_prep_0 + 120
5 ios-sim 0x0000000102d71e29 -[iPhoneSimulator LoadSimulatorFramework:] + 245
6 ios-sim 0x0000000102d738e0 -[iPhoneSimulator runWithArgc:argv:] + 2271
7 ios-sim 0x0000000102d73cb2 main + 101
8 ios-sim 0x0000000102d71ce4 start + 52
9 ??? 0x0000000000000002 0x0 + 2
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Abort trap: 6


#3

Hi Franc,

Try to upgrade the ios-sim utility with:

$ sudo npm install ios-sim -g

Because Xcode6 is supported after version 3.0.

After upgrade I can run emulator without problems.


#4

it works like a charm

Thanks a lot :smiley: