美文网首页
2021-12-03

2021-12-03

作者: BillZhang88 | 来源:发表于2021-12-03 15:34 被阅读0次

    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
    

    相关文章

      网友评论

          本文标题:2021-12-03

          本文链接:https://www.haomeiwen.com/subject/swtmxrtx.html