当前位置 : 主页 > 手机开发 > cordova >

cordova – 在phonegap 3.5.0-0.21.17上xcode升级到6.0.1后,“phonegap run ios”命令抛出错误

来源:互联网 收集:自由互联 发布时间:2021-06-10
虽然构建成功,但是当我执行phonegap run命令时,我看到以下错误 2014-09-23 16:44:47.925 ios-sim[6274:507] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayM localizedDescriptio
虽然构建成功,但是当我执行phonegap run命令时,我看到以下错误

2014-09-23 16:44:47.925 ios-sim[6274:507] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayM localizedDescription]: unrecognized selector sent to instance 0x7f9ac3c13d50'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff8b51b25c __exceptionPreprocess + 172
1 libobjc.A.dylib 0x00007fff8b213e75 objc_exception_throw + 43
2 CoreFoundation 0x00007fff8b51e12d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x00007fff8b479272 ___forwarding___ + 1010
4 CoreFoundation 0x00007fff8b478df8 _CF_forwarding_prep_0 + 120
5 ios-sim 0x000000010fdb7e29 -[iPhoneSimulator LoadSimulatorFramework:] + 245
6 ios-sim 0x000000010fdb98e0 -[iPhoneSimulator runWithArgc:argv:] + 2271
7 ios-sim 0x000000010fdb9cb2 main + 101
8 ios-sim 0x000000010fdb7ce4 start + 52
9 ??? 0x000000000000000b 0x0 + 11
)
libc++abi.dylib: terminating with uncaught exception of type NSException
/Users/MyName/Sites/phonegap/helloworld/platforms/ios/cordova/run: line 158: 6274 Abort trap: 6 ios-sim launch "$SIMULATOR_APP_PATH" --stderr "$CORDOVA_PATH/console.log" --stdout "$CORDOVA_PATH/console.log" $TARGET_FLAG --exit

有人可以帮忙吗?

你需要更新ios-sim:

npm install -g ios-sim

要么

sudo npm install -g ios-sim
网友评论