Xcode 修改项目名后反复产生的问题ld: file not found
Xcode 修改项目名后反复产生的问题ld: file not found
萨斯辈的呼唤 发表于2年前
Xcode 修改项目名后反复产生的问题ld: file not found
  • 发表于 2年前
  • 阅读 19
  • 收藏 0
  • 点赞 0
  • 评论 0

腾讯云 技术升级10大核心产品年终让利>>>   

摘要: clang: error: linker command failed with exit code 1 (use -v to see invocation)


Ld /Users/Guicai/Library/Developer/Xcode/DerivedData/BaseProject-aeoyxgdncbjvliezzbcaqlsiinot/Build/Products/Debug-iphonesimulator/BaseProjectTests.xctest/BaseProjectTests normal x86_64
    cd /Users/Guicai/Documents/baby_ios/BaseProject
    export IPHONEOS_DEPLOYMENT_TARGET=8.1
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.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 x86_64 -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk -L/Users/Guicai/Library/Developer/Xcode/DerivedData/BaseProject-aeoyxgdncbjvliezzbcaqlsiinot/Build/Products/Debug-iphonesimulator -F/Users/Guicai/Library/Developer/Xcode/DerivedData/BaseProject-aeoyxgdncbjvliezzbcaqlsiinot/Build/Products/Debug-iphonesimulator -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/Developer/Library/Frameworks -filelist /Users/Guicai/Library/Developer/Xcode/DerivedData/BaseProject-aeoyxgdncbjvliezzbcaqlsiinot/Build/Intermediates/BaseProject.build/Debug-iphonesimulator/BaseProjectTests.build/Objects-normal/x86_64/BaseProjectTests.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -bundle_loader /Users/Guicai/Library/Developer/Xcode/DerivedData/BaseProject-aeoyxgdncbjvliezzbcaqlsiinot/Build/Products/Debug-iphonesimulator/BaseProject.app/BaseProject -Xlinker -objc_abi_version -Xlinker 2 -framework XCTest -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=8.1 -Xlinker -dependency_info -Xlinker /Users/Guicai/Library/Developer/Xcode/DerivedData/BaseProject-aeoyxgdncbjvliezzbcaqlsiinot/Build/Intermediates/BaseProject.build/Debug-iphonesimulator/BaseProjectTests.build/Objects-normal/x86_64/BaseProjectTests_dependency_info.dat -o /Users/Guicai/Library/Developer/Xcode/DerivedData/BaseProject-aeoyxgdncbjvliezzbcaqlsiinot/Build/Products/Debug-iphonesimulator/BaseProjectTests.xctest/BaseProjectTests

ld: file not found: /Users/Guicai/Library/Developer/Xcode/DerivedData/BaseProject-aeoyxgdncbjvliezzbcaqlsiinot/Build/Products/Debug-iphonesimulator/BaseProject.app/BaseProject
clang: error: linker command failed with exit code 1 (use -v to see invocation)


解决办法:

点击Projrect->Edit Scheme 把所有Build中Test的全取消。



共有 人打赏支持
粉丝 30
博文 89
码字总数 33346
×
萨斯辈的呼唤
如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
* 金额(元)
¥1 ¥5 ¥10 ¥20 其他金额
打赏人
留言
* 支付类型
微信扫码支付
打赏金额:
已支付成功
打赏金额: