2014-09-24 65 views
4

儘管構建成功後拋出錯誤,我看到下面的錯誤,當我執行的PhoneGap運行命令「PhoneGap的運行IOS的」命令的Xcode升級到6.0.1上的PhoneGap 3.5.0-0.21.17

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 

任何人都可以幫忙嗎?

回答

2

您需要更新IOS-SIM卡:是需要的Xcode 6+

npm install -g ios-sim 

sudo npm install -g ios-sim 
+1

我曾經那樣做過,但沒有工作。無論如何,重新安裝ios-sim解決了這個問題。謝謝 – Musa 2014-10-02 07:50:25

1

IOS-SIM 3.0.0,更新iOS-SIM卡。