A CMake tool file for iOS
Tested with the following combinations:
- XCode 8.2.x, iOS SDK 10.2
- XCode 8.3.2, iOS SDK 10.3
**NOTE: Change the -DIOS_PLATFORM
to applicable value if targeting other platform. **
cmake .. -DCMAKE_TOOLCHAIN_FILE=../../ios.toolchain.cmake -DIOS_PLATFORM=SIMULATOR64 -DCMAKE_BUILD_TYPE=Release
cmake --build .
- Set
-DIOS_PLATFORM
to "SIMULATOR" (example above) to build for iOS simulator 32 bit (i386) - Set
-DIOS_PLATFORM
to "SIMULATOR64" to build for iOS simulator 64 bit (x86_64) - Set
-DIOS_PLATFORM
to "OS" to build for Device (armv7, armv7s, arm64)
* To combine all platforms into the same, use the LIPO tool. lipo -create ".a path" -output ".a name"; also you can use lipo -info to analysis it.*