xcode修改项目名后反复出现 clang error
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执行的操作。 这是最简单粗暴的方法。
出处: http://www.cnblogs.com/todototry/
关注语言: python、javascript(node.js)、objective-C、java、R、C++
兴趣点: 互联网、大数据技术、大数据IO瓶颈、col-oriented DB、Key-Value DB、数据挖掘、模式识别、deep learning、开发与成本管理
产品:
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 地球OL攻略 —— 某应届生求职总结
· 提示词工程——AI应用必不可少的技术
· Open-Sora 2.0 重磅开源!
· 周边上新:园子的第一款马克杯温暖上架