xcode 5 archive build fail, but normal build successfully

后端 未结 3 1611
萌比男神i
萌比男神i 2020-12-30 03:06

I can build and run my app on my device, but when I tried to build archive, I got many errors. The errors are about my 3rd library - google protobuf. It showed that #error H

3条回答
  •  清歌不尽
    2020-12-30 03:29

    When you build to run, Xcode usually builds for the active architecture only. When you archive it builds all the architectures specified by the intersection of the Build Settings "Architectures and Valid Architectures".

    So it's likely that Xcode is trying to build for some architecture that isn't supported by your protobuf library, e.g. Arm64.

提交回复
热议问题