ignoring file [path] missing required architecture i386 in file

后端 未结 3 1784
隐瞒了意图╮
隐瞒了意图╮ 2020-12-23 11:55

I\'m quite new to Xcode and Iphone development and ran into the following problem:

I opened a new project and added *.h and a *.a files (which I recived from a cer

相关标签:
3条回答
  • 2020-12-23 12:33

    This warning means that you're trying to use library made for Device (ARM) with your Simulator (i386).

    You can use this terminal command to create a universal library:

    lipo -create lib_arm.a lib_i386.a -output lib_universal.a
    

    More info about lipo command here.

    0 讨论(0)
  • 2020-12-23 12:41

    Change your target's "Build Settings > Build Active Architectures Only" to "No"

    This is doing the same thing as Dmitry Zhukov's answer but doing it thru Xcode instead of going around its back.

    0 讨论(0)
  • 2020-12-23 12:41

    If you are working with a 3rd party code, keep in mind that some SDKs may not work on the simulator. The same build error I have encountered vanished, when I ran the project on the device.

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