iOS Cmkae 编译脚本
set -e
rm -rf build_ios
# cmake -DCMAKE_TOOLCHAIN_FILE=cmake/ios.toolchain.cmake -DCMAKE_IOS_DEVELOPER_ROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/ -DCMAKE_IOS_SDK_ROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk -DPLATFORM=OS -DCMAKE_BUILD_TYPE=Release -B build_ios
cmake -G Xcode -DCMAKE_TOOLCHAIN_FILE=cmake/ios.toolchain.cmake -DPLATFORM="SIMULATOR64" -DDEPLOYMENT_TARGET=11 -DENABLE_BITCODE=1
-DENABLE_VISIBILITY=1 -DENABLE_STRICT_TRY_COMPILE=1
cmake --build build_ios -j8
cmake --install build_ios
cd build_ios
cpack -C build_ios
网友评论