2015-04-24 69 views
0

失敗,當我在Xcode 6.3運行我的單元測試用例它給了我一個錯誤說單元測試用例在Xcode

ld: building for iOS Simulator, but linking against dylib built for MacOSX file '/Applications/Xcode.app/Contents/Developer/Library/Frameworks/XCTest.framework/XCTest' for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)

單元測試在開發者系統中工作,但不在我的服務器mac機器上。請幫助我。

回答

0

終於自己找到了。這是xcode中的一個錯誤。只需卸載xcode並刪除路徑~/Library/Developer/Xcode中的文件即可。然後重新安裝xcode,錯誤消失了。