gpt4 book ai didi

react-native - Xcode 12 问题 : "Build input file cannot be found "- Building for release on a react native app

转载 作者:行者123 更新时间:2023-12-03 15:37:32 24 4
gpt4 key购买 nike

当我尝试为“任何 iOS 设备”进行归档构建时,我收到此错误:

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]'


我在为 iOS 模拟器构建时收到了同样的错误,但这篇文章修复了它 - Problems after upgrading to Xcode 12:ld: building for iOS Simulator, but linking in dylib built for iOS, architecture arm64 .
我还收到有关可能与错误相关或不相关的架构的警告:

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).


architectures
VALID_ARCHS

最佳答案

为“任何 iOS 设备”构建(例如,“存档”,因为您想上传到 AppStore):

  • 从“排除的架构”中删除 arm64
  • 从 VALID_ARCHS 中删除 x86_64
  • 将 arm64 添加到 VALID_ARCHS

  • 所有这些都在“build设置”、项目和目标上发生了变化。如果您想为模拟器构建,请执行相反的路径:
  • 将 arm64 添加到“排除的架构”
  • 从 VALID_ARCHS 中删除 arm64
  • 将 x86_64 添加到 VALID_ARCHS

  • 这对我行得通。

    关于react-native - Xcode 12 问题 : "Build input file cannot be found "- Building for release on a react native app,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64123206/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com