2015-05-11 120 views
0

我的應用在真實設備上運行良好,但是當我試圖在模擬器上運行它時,它給了我這個錯誤。任何人都可以幫助我理解這個錯誤是什麼?xcode6連接器命令失敗,退出代碼1(使用-v查看調用)

ld: in '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/libextension.dylib', missing required architecture x86_64 in file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/libextension.dylib (3 slices) for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

回答

1

看來,Xcode無法找到一個libextension.dylib文件,它是爲您選擇的模擬器架構而構建的。由於.dylib文件應該與Xcode一起提供,因此我懷疑您的Xcode版本存在問題。您是自己製作項目還是下載?

您可以嘗試進入Preferences->下載並下載其中列出的模擬器組件。

相關問題