链接器命令失败,退出代码为1(Xcode)

时间:2016-09-13 13:38:03

标签: ios swift

我的构建失败后出现此错误

Ld /Users/PouyaYarandi/Library/Developer/Xcode/DerivedData/Hesabdar-cmrqdmmqdgptpjbvcglvkazslyve/Build/Products/Debug-iphoneos/Hesabdar.app/Hesabdar normal arm64
    cd /Users/PouyaYarandi/Documents/Hesabdar
    export IPHONEOS_DEPLOYMENT_TARGET=9.3
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk -L/Users/PouyaYarandi/Library/Developer/Xcode/DerivedData/Hesabdar-cmrqdmmqdgptpjbvcglvkazslyve/Build/Products/Debug-iphoneos -L/Users/PouyaYarandi/Documents/Hesabdar -L/Users/PouyaYarandi/Documents/Hesabdar/Hesabdar/2.6 -L2 -F/Users/PouyaYarandi/Library/Developer/Xcode/DerivedData/Hesabdar-cmrqdmmqdgptpjbvcglvkazslyve/Build/Products/Debug-iphoneos -F/Users/PouyaYarandi/Documents/Hesabdar/Hesabdar -filelist /Users/PouyaYarandi/Library/Developer/Xcode/DerivedData/Hesabdar-cmrqdmmqdgptpjbvcglvkazslyve/Build/Intermediates/Hesabdar.build/Debug-iphoneos/Hesabdar.build/Objects-normal/arm64/Hesabdar.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -miphoneos-version-min=9.3 -dead_strip -Xlinker -no_deduplicate -Objc -fobjc-arc -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -Xlinker -add_ast_path -Xlinker /Users/PouyaYarandi/Library/Developer/Xcode/DerivedData/Hesabdar-cmrqdmmqdgptpjbvcglvkazslyve/Build/Intermediates/Hesabdar.build/Debug-iphoneos/Hesabdar.build/Objects-normal/arm64/Hesabdar.swiftmodule -lAdadClient /Users/PouyaYarandi/Library/Developer/Xcode/DerivedData/Hesabdar-cmrqdmmqdgptpjbvcglvkazslyve/Build/Products/Debug-iphoneos/Charts.framework/Charts -Xlinker -dependency_info -Xlinker /Users/PouyaYarandi/Library/Developer/Xcode/DerivedData/Hesabdar-cmrqdmmqdgptpjbvcglvkazslyve/Build/Intermediates/Hesabdar.build/Debug-iphoneos/Hesabdar.build/Objects-normal/arm64/Hesabdar_dependency_info.dat -o /Users/PouyaYarandi/Library/Developer/Xcode/DerivedData/Hesabdar-cmrqdmmqdgptpjbvcglvkazslyve/Build/Products/Debug-iphoneos/Hesabdar.app/Hesabdar

有这个标题:

clang: error: linker command failed with exit code 1

我已经阅读过有关此错误的问题,但他们无法帮助我。

1 个答案:

答案 0 :(得分:0)

最后,我在我的项目文件夹中遇到了问题,并且移动了一些文件我解决了我的问题。感谢Rashwan L和Mr.UB的帮助。