Build fat static library (device + simulator) using Xcode and SDK 4+

前端 未结 10 1231
独厮守ぢ
独厮守ぢ 2020-11-22 02:21

It appears that we can - theoretically - build a single static library that includes both simulator and iPhone and iPad.

However, Apple has no documentation on this

10条回答
  •  独厮守ぢ
    2020-11-22 03:11

    XCode 12 update:

    If you run xcodebuild without -arch param, XCode 12 will build simulator library with architecture "arm64 x86_64" as default.

    Then run xcrun -sdk iphoneos lipo -create -output will conflict, because arm64 architecture exist in simulator and also device library.

    I fork script from Adam git and fix it.

提交回复
热议问题