No architectures to compile for (ARCHS=i386, VALID_ARCHS=arm64 armv7 armv7s)

后端 未结 2 1513
孤街浪徒
孤街浪徒 2021-02-18 23:45

Preface: I did look at similar questions and none of the answers seemed to fix my problem.

I am trying to build my xcode (version 5.1.1) project using:

相关标签:
2条回答
  • 2021-02-19 00:16

    You can override your default variables: Try to use this:

    xcodebuild clean build -sdk iphonesimulator7.0 -arch "i386" ONLY_ACTIVE_ARCH=NO VALID_ARCHS="i386 x86_64"
    

    If you building for Simulator - always build for i386/x86_64.

    0 讨论(0)
  • 2021-02-19 00:34

    Go to your project settings (not targets). Then open Build Settings and add a value to Valid architectures: i386

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