当我在设备上运行我的应用程序时,它工作正常,但当我尝试将其存档以上传到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.