2021-12-03

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
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容