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

前端 未结 10 1232
独厮守ぢ
独厮守ぢ 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 02:55

    IOS 10 Update:

    I had a problem with building the fatlib with iphoneos10.0 because the regular expression in the script only expects 9.x and lower and returns 0.0 for ios 10.0

    to fix this just replace

    SDK_VERSION=$(echo ${SDK_NAME} | grep -o '.\{3\}$')
    

    with

    SDK_VERSION=$(echo ${SDK_NAME} | grep -o '[\\.0-9]\{3,4\}$')
    

提交回复
热议问题