Xcode 12 问题:“找不到构建输入文件"- 在 React Native 应用程序上构建以供发布 [英] Xcode 12 Problems: "Build input file cannot be found "- Building for release on a react native app
问题描述
当我尝试为任何 iOS 设备"进行归档构建时,我收到此错误:
<块引用>找不到构建输入文件:'/Users/.../Library/Developer/Xcode/DerivedData/[app]-czrkuohjfzuzzxfobfoyptxhyoyo/Build/Intermediates.noindex/ArchiveIntermediates/[app]/InstallationBuildProductsLocation/Applications/[Product名称].app/[产品名称]'
我在为 iOS 模拟器构建时收到了同样的错误,但这篇文章修复了它 -
Build forAny iOS Device"(例如,存档",因为您要上传到 AppStore):
- 从排除的架构"中删除 arm64
- 从 VALID_ARCHS 中删除 x86_64
- 将 arm64 添加到 VALID_ARCHS
构建设置"、项目和目标上的所有这些都发生了变化.如果您想为模拟器构建,请执行相反的路径:
- 将 arm64 添加到排除的架构"
- 从 VALID_ARCHS 中删除 arm64
- 将 x86_64 添加到 VALID_ARCHS
这对我有用.
When I try to do an archive build for "any iOS device", I receive this error:
Build input file cannot be found: '/Users/.../Library/Developer/Xcode/DerivedData/[app]-czrkuohjfzuzxxfobfoyptxhyoyo/Build/Intermediates.noindex/ArchiveIntermediates/[app]/InstallationBuildProductsLocation/Applications/[Product Name].app/[Product Name]'
I received this same error when building for an iOS simulator, but this post fixed it - Problems after upgrading to Xcode 12:ld: building for iOS Simulator, but linking in dylib built for iOS, architecture arm64.
I am also receiving a warning concerning the architectures that may or may not be relatable to the error:
None of the architectures in ARCHS (arm64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, armv7s, armv7) which is not in EXCLUDED_ARCHS (arm64).
Build for "Any iOS Device" (for example, "Archive" because you want to upload to AppStore):
- Delete arm64 from "Excluded Architectures"
- Delete x86_64 from VALID_ARCHS
- Add arm64 to VALID_ARCHS
All this changes on both "Build Settings", project and target. And if you want to build for simulator do the inverse path:
- Add arm64 to "Excluded Architectures"
- Delete arm64 from VALID_ARCHS
- Add x86_64 to VALID_ARCHS
That works for me.
这篇关于Xcode 12 问题:“找不到构建输入文件"- 在 React Native 应用程序上构建以供发布的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!