xcode修改项目名后反复出现 clang error
2014-11-24 22:49
232 查看
xcode修改项目名后反复出现 clang error, 提示 ld: file not found .
并且该错误并不是出现在项目编译阶段,而是项目的Tests 的link阶段, 同时提示 xctest 出现错误,详细描述如下:
Ld /Users/iOSDev/Library/Developer/Xcode/DerivedData/iddn-apnitmxvcbgmcoczqswzexnvbxai/Build/Products/Debug-iphoneos/iddnTests.xctest/iddnTests normal arm64
cd /Users/iOSDev/dev/propertymanager
export IPHONEOS_DEPLOYMENT_TARGET=7.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 arm64 -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk -L/Users/iOSDev/Library/Developer/Xcode/DerivedData/iddn-apnitmxvcbgmcoczqswzexnvbxai/Build/Products/Debug-iphoneos -F/Users/iOSDev/Library/Developer/Xcode/DerivedData/iddn-apnitmxvcbgmcoczqswzexnvbxai/Build/Products/Debug-iphoneos -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.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.1.sdk/Developer/Library/Frameworks -filelist /Users/iOSDev/Library/Developer/Xcode/DerivedData/iddn-apnitmxvcbgmcoczqswzexnvbxai/Build/Intermediates/iddn.build/Debug-iphoneos/iddnTests.build/Objects-normal/arm64/iddnTests.LinkFileList -dead_strip -bundle_loader /Users/iOSDev/Library/Developer/Xcode/DerivedData/iddn-apnitmxvcbgmcoczqswzexnvbxai/Build/Products/Debug-iphoneos/PMS.app/PMS -framework XCTest -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=7.0 -framework XCTest -framework UIKit -framework Foundation -Xlinker -dependency_info -Xlinker /Users/iOSDev/Library/Developer/Xcode/DerivedData/iddn-apnitmxvcbgmcoczqswzexnvbxai/Build/Intermediates/iddn.build/Debug-iphoneos/iddnTests.build/Objects-normal/arm64/iddnTests_dependency_info.dat -o /Users/iOSDev/Library/Developer/Xcode/DerivedData/iddn-apnitmxvcbgmcoczqswzexnvbxai/Build/Products/Debug-iphoneos/iddnTests.xctest/iddnTests
ld: file not found: /Users/iOSDev/Library/Developer/Xcode/DerivedData/iddn-apnitmxvcbgmcoczqswzexnvbxai/Build/Products/Debug-iphoneos/PMS.app/PMS
clang: error: linker command failed with exit code 1 (use -v to see invocation)
则该错误导致的原因是,我们在修改项目名称后,并未自动修改test部分的链接设置。
解决该问题的方法是: 修改bundler loader setting.
菜单 project->Scheme->Edit Scheme. 取消test执行的操作。 这是最简单粗暴的方法。
并且该错误并不是出现在项目编译阶段,而是项目的Tests 的link阶段, 同时提示 xctest 出现错误,详细描述如下:
Ld /Users/iOSDev/Library/Developer/Xcode/DerivedData/iddn-apnitmxvcbgmcoczqswzexnvbxai/Build/Products/Debug-iphoneos/iddnTests.xctest/iddnTests normal arm64
cd /Users/iOSDev/dev/propertymanager
export IPHONEOS_DEPLOYMENT_TARGET=7.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 arm64 -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk -L/Users/iOSDev/Library/Developer/Xcode/DerivedData/iddn-apnitmxvcbgmcoczqswzexnvbxai/Build/Products/Debug-iphoneos -F/Users/iOSDev/Library/Developer/Xcode/DerivedData/iddn-apnitmxvcbgmcoczqswzexnvbxai/Build/Products/Debug-iphoneos -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.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.1.sdk/Developer/Library/Frameworks -filelist /Users/iOSDev/Library/Developer/Xcode/DerivedData/iddn-apnitmxvcbgmcoczqswzexnvbxai/Build/Intermediates/iddn.build/Debug-iphoneos/iddnTests.build/Objects-normal/arm64/iddnTests.LinkFileList -dead_strip -bundle_loader /Users/iOSDev/Library/Developer/Xcode/DerivedData/iddn-apnitmxvcbgmcoczqswzexnvbxai/Build/Products/Debug-iphoneos/PMS.app/PMS -framework XCTest -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=7.0 -framework XCTest -framework UIKit -framework Foundation -Xlinker -dependency_info -Xlinker /Users/iOSDev/Library/Developer/Xcode/DerivedData/iddn-apnitmxvcbgmcoczqswzexnvbxai/Build/Intermediates/iddn.build/Debug-iphoneos/iddnTests.build/Objects-normal/arm64/iddnTests_dependency_info.dat -o /Users/iOSDev/Library/Developer/Xcode/DerivedData/iddn-apnitmxvcbgmcoczqswzexnvbxai/Build/Products/Debug-iphoneos/iddnTests.xctest/iddnTests
ld: file not found: /Users/iOSDev/Library/Developer/Xcode/DerivedData/iddn-apnitmxvcbgmcoczqswzexnvbxai/Build/Products/Debug-iphoneos/PMS.app/PMS
clang: error: linker command failed with exit code 1 (use -v to see invocation)
则该错误导致的原因是,我们在修改项目名称后,并未自动修改test部分的链接设置。
解决该问题的方法是: 修改bundler loader setting.
菜单 project->Scheme->Edit Scheme. 取消test执行的操作。 这是最简单粗暴的方法。
相关文章推荐
- xcode修改项目名后反复出现 clang error
- Xcode修改项目名称
- iphone xcode4.2 如何修改项目工程名称
- 怎么修改XCode项目的名称
- 使用Xcode修改iOS项目工程名和路径名
- 【iO】解决Xcode项目出现My mac 64-bit/设置允许用户外部资源同步到App/解决CodeSign error: Certificate identity ‘iPhone Distrib
- Xcode修改项目名
- Xcode ,Cocos2d-x,强制横屏,Bundle Identifier ,iOS 打包成.ipa,修改项目名称,同名图片替换总是显示旧图片
- 怎么修改XCode项目的名称
- iphone开发Xcode修改项目名
- 使用Xcode修改iOS项目工程名和路径名
- xCode4.2中导入OpenFlow库到项目中出现编译警告warning: Semantic Issue: Writable atomic property
- IOS开发问题解决之Xcode修改项目名称后,无法选择run的设备
- 项目从xcode4.3.2(狮子)转移到4.2(雪豹)出现my mac 64 bit的问题。
- 怎么修改XCode项目的名称
- 怎么修改XCode项目的名称
- xCode4.2中导入OpenFlow库到项目中出现编译警告warning: Semantic Issue: Writable at ...
- IOS开发Xcode修改项目名
- xcode修改代码目录结构出现clang: error: no such file or directory 解决方法
- 使用Xcode修改iOS项目工程名和路径名