虽然构建成功,但是当我执行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
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。