加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

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

发布时间:2020-12-14 17:24:35 所属栏目:百科 来源:网络整理
导读:当我在设备上运行我的应用程序时,它工作正常,但当我尝试将其存档以上传到iTunes Connect时,我收到此错误: 错误1: ld: can’t open output file for writing: /Users/xxxx/Library/Developer/Xcode/DerivedData/Drikkespillet-bmengfxihzksonhdoqpbllpzpagg
当我在设备上运行我的应用程序时,它工作正常,但当我尝试将其存档以上传到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.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读