Xcode 12 Problems: “Build input file cannot be found ”- Building for release on a react native app

后端 未结 4 1393
南旧
南旧 2020-12-21 09:08

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/

相关标签:
4条回答
  • 2020-12-21 09:43

    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.

    0 讨论(0)
  • 2020-12-21 09:53

    I know this question has been answered but this piece of information may help someone: This kind of error may also be produced if you have no node_modules folder e.g. you have deleted it and forgot to re-create it

    0 讨论(0)
  • 2020-12-21 09:57

    So I had the exact same issue. After updating to Xcode 12 I had originally set both my project and target 's 'Excluded Architecture' to arm64 in order to run on Simulator. But, as you mention, that blocks anything from working on Release / Real device. All I had to do was switch to 'Any iOS Simulator SDK = arm64' instead of all of them, see screen shot below:

    link to screenshot

    0 讨论(0)
  • 2020-12-21 09:57

    This problem wasted a lot of my time after upgrading to xcode 12, using React Native 0.63. Excluding architectures did not work for me.

    Symptoms: "build input file could not be found..." when running on device in debug AND release. Simulator worked fine.

    To Fix: Editor > Validate Settings... > Perform Changes

    Now my app builds fine on device.

    0 讨论(0)
提交回复
热议问题