2014-09-23 138 views
1

我在模擬器上運行我的應用程序,它工作正常,並啓動。鏈接器命令失敗錯誤,xcode?

但是,當我連接iPhone設備並運行該項目時,我得到以下錯誤。

我不明白這是什麼意思

 Ld /Users/anilkumar/Library/Developer/Xcode/DerivedData/Colgate_Oral_Care_Centre- gnpyidirhzoloxbfrpksaeqeowve/Build/Products/Debug-iphoneos/ColTests.xctest/ColTests normal armv7 
cd /Users/anilkumar/Desktop/Col 
export IPHONEOS_DEPLOYMENT_TARGET=8.0 
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk -L/Users/anilkumar/Library/Developer/Xcode/DerivedData/Colgate_Oral_Care_Centre-gnpyidirhzoloxbfrpksaeqeowve/Build/Products/Debug-iphoneos -F/Users/anilkumar/Library/Developer/Xcode/DerivedData/Colgate_Oral_Care_Centre-gnpyidirhzoloxbfrpksaeqeowve/Build/Products/Debug-iphoneos -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk/Developer/Library/Frameworks -filelist /Users/anilkumar/Library/Developer/Xcode/DerivedData/Colgate_Oral_Care_Centre-gnpyidirhzoloxbfrpksaeqeowve/Build/Intermediates/Colgate\ Oral\ Care\ Centre.build/Debug-iphoneos/ColTests.build/Objects-normal/armv7/ColTests.LinkFileList -dead_strip -bundle_loader /Users/anilkumar/Library/Developer/Xcode/DerivedData/Colgate_Oral_Care_Centre-gnpyidirhzoloxbfrpksaeqeowve/Build/Products/Debug-iphoneos/Col.app/Col -framework XCTest -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=8.0 -framework XCTest -framework UIKit -framework Foundation -Xlinker -dependency_info -Xlinker /Users/anilkumar/Library/Developer/Xcode/DerivedData/Colgate_Oral_Care_Centre-gnpyidirhzoloxbfrpksaeqeowve/Build/Intermediates/Colgate\ Oral\ Care\ Centre.build/Debug-iphoneos/ColTests.build/Objects-normal/armv7/ColTests_dependency_info.dat -o /Users/anilkumar/Library/Developer/Xcode/DerivedData/Colgate_Oral_Care_Centre-gnpyidirhzoloxbfrpksaeqeowve/Build/Products/Debug-iphoneos/ColTests.xctest/ColTests 

ld: file not found: /Users/anilkumar/Library/Developer/Xcode/DerivedData/Colgate_Oral_Care_Centre-gnpyidirhzoloxbfrpksaeqeowve/Build/Products/Debug-iphoneos/Col.app/Col 
    clang: error: linker command failed with exit code 1 (use -v to see invocation) 

enter image description here

如何解決這個問題?

+0

向我們展示完整的鏈接器命令行(從構建日誌窗格)。 – trojanfoe 2014-09-23 09:26:28

+0

@trojanfoe已更新 – WISHY 2014-09-23 09:30:25

+0

確定查看'文件未找到'錯誤。看看該目錄是否存在。 – trojanfoe 2014-09-23 09:32:17

回答

0

只是刪除在構建設置的lib路徑,並刪除您添加庫,並再次將它們添加

enter image description here

+0

它已經是空的 – WISHY 2014-09-23 09:54:22

+0

不添加任何庫 – raki 2014-09-23 09:59:21

+0

我沒有bt它是空的。雖然該應用程序在仿真器上啓動,但不在連接的設備上啓動。 – WISHY 2014-09-23 10:01:15

0

對我來說,它的工作通過刪除測試目標 - 去項目設置 - 在標題爲「項目」和「目標」的中間欄我刪除了我的目標,即'xyzClientTest'。 (對我來說,它是在相同的目標拋出錯誤)

它成功運行。我在評估開發者的應用時並不需要測試目標。

相關問題