xcode修改项目名后反复出现 clang error

 Ld /Users/lpf/Library/Developer/Xcode/DerivedData/项目名称-hlaftrutsszdxidyyvgbghpejcia/Build/Products/Debug-iphoneos/项目名称Tests.xctest/项目名称Tests normal armv7
    cd "/Users/lpf/Downloads/项目名称iph/项目名称iphone 3"
    export IPHONEOS_DEPLOYMENT_TARGET=7.1
    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.4.sdk -L/Users/lpf/Library/Developer/Xcode/DerivedData/项目名称-hlaftrutsszdxidyyvgbghpejcia/Build/Products/Debug-iphoneos -F/Users/lpf/Library/Developer/Xcode/DerivedData/项目名称-hlaftrutsszdxidyyvgbghpejcia/Build/Products/Debug-iphoneos -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.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.4.sdk/Developer/Library/Frameworks -filelist /Users/lpf/Library/Developer/Xcode/DerivedData/项目名称-hlaftrutsszdxidyyvgbghpejcia/Build/Intermediates项目名称.build/Debug-iphoneos/项目名称Tests.build/Objects-normal/armv7项目名称Tests.LinkFileList -dead_strip -bundle_loader /Users/lpf/Library/Developer/Xcode/DerivedData/项目名称-hlaftrutsszdxidyyvgbghpejcia/Build/Products/Debug-iphoneos项目名称.app/项目名称 -framework XCTest -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=7.1 -framework XCTest -framework UIKit -framework Foundation -Xlinker -dependency_info -Xlinker /Users/lpf/Library/Developer/Xcode/DerivedData/项目名称-hlaftrutsszdxidyyvgbghpejcia/Build/Intermediates/项目名称.b

ld: file not found: /Users/lpf/Library/Developer/Xcode/DerivedData/项目名称-hlaftrutsszdxidyyvgbghpejcia/Build/Products/Debug-iphoneos/项目名称app/项目名称
clang: error: linker command failed with exit code 1 (use -v to see invocation)


原因:我们在修改项目名称后,并未自动修改test部分的链接设置
解决办法:在TARGETS->项目名称Tests->Build Settings->Bundle Loader中设置生成文件名与项目名同名称即可。
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值