运行程序报错
ld: file not found: ~/Library/Developer/Xcode/DerivedData/xxx-fxhqtzymbwegttddoznsqpakmlvp/Build/Products/Debug-iphonesimulator/xxx.app/xxx
clang: error: linker command failed with exit code 1 (use -v to see invocation)
clean 项目后 删除DerivedData后 重启Xcode不起作用
2种解决办法
1)左击工程文件:
选择Edit Scheme
把红色圈住的去掉就ok了
2)Proj->BuildingSetting-搜应用名 ->Product Name更改为和 Executable file一致(proj->info->Executable file)
本文详细介绍了在使用Xcode进行iOS开发时遇到的链接错误ld: file not found及clang error的具体原因与两种解决方法。一是通过编辑工程方案移除无效链接,二是确保产品名称与可执行文件一致。
2089

被折叠的 条评论
为什么被折叠?



