ios – 归档项目时出错:ld:无法打开输出文件进行写入

前端之家收集整理的这篇文章主要介绍了ios – 归档项目时出错:ld:无法打开输出文件进行写入前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
当我在设备上运行我的应用程序时,它工作正常,但当我尝试将其存档以上传到iTunes Connect时,我收到此错误

错误1:

ld: can’t open output file for writing:
/Users/xxxx/Library/Developer/Xcode/DerivedData/Drikkespillet-bmengfxihzksonhdoqpbllpzpagg/Build/Intermediates/ArchiveIntermediates/Drikkespillet/IntermediateBuildFilesPath/Drikkespillet.build/Release-iphoneos/Drikkespillet.build/Objects-normal/arm64/Drikkespillet,
errno=21 for architecture arm64 clang: error: linker command Failed
with exit code 1 (use -v to see invocation)

错误2:

ld: can’t open output file for writing:
/Users/xxxx/Library/Developer/Xcode/DerivedData/Drikkespillet-bmengfxihzksonhdoqpbllpzpagg/Build/Intermediates/ArchiveIntermediates/Drikkespillet/IntermediateBuildFilesPath/Drikkespillet.build/Release-iphoneos/Drikkespillet.build/Objects-normal/armv7/Drikkespillet,
errno=21 for architecture armv7 clang: error: linker command Failed
with exit code 1 (use -v to see invocation)

我试图删除“框架搜索路径”和“库搜索路径”.但它仍然无法归档项目.这里有什么建议?

解决方法

在项目文件中转到构建设置 – >架构部分 – >有效的架构 – >删除arm64.

猜你在找的Xcode相关文章