美文网首页
【IOS】Executable Not Found

【IOS】Executable Not Found

作者: Blue_Color | 来源:发表于2024-05-28 17:25 被阅读0次

编译后报错:Executable Not Found
/Users/xxx/Library/Developer/Xcode/DerivedData/xxx-xxx/Build/Products/Debug-iphoneos/Test.app is not a valid path to an executable file. Please rebuild the project to ensure that all required executables are created. Check your project settings to ensure that a valid executable will be built.

image.png
经过尝试发现是PrefixHeader.h文件的路径错误导致的
设置Targets ->Build Setting 里面的
prefix header 路径为 (SRCROOT)/(PROJECT_NAME)/PrefixHeader.h(相对路径) 如果PrefixHeader.h文件的路径不是直接在项目路径下,而是在二级目录下,二级目录的地址也要写写上.例如:(SRCROOT)/(PROJECT_NAME)/Class/PrefixHeader.h
我直接写了绝对路径(不提倡哦),按图中左边绿框的路径填进右边绿框中,clean project 重新 build ,OK打包成功
7ea0bc758b1ac0d3c01c36eee93f9cd.png

参考链接 https://www.jianshu.com/p/e69487013406

相关文章

网友评论

      本文标题:【IOS】Executable Not Found

      本文链接:https://www.haomeiwen.com/subject/wxqkqjtx.html