运行程序报错
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)
时间: 2024-10-29 03:59:23