美文网首页简书首页
iOS与Android命令行打包

iOS与Android命令行打包

作者: Lucky丶晴 | 来源:发表于2019-06-06 14:35 被阅读0次


    Android打包

    brew install gradle  //安装gradle环境

    cd /Users/chinalife/Desktop/OnePartnerAndroidUat

    gradle clean

    gradle assembleRelease

    打包后路径

    /Users/chinalife/Desktop/OnePartnerAndroidUat/app/build/outputs/apk/release/app-release.apk

    iOS打包

    cd /Users/chinalife/Desktop/OnePartnerUat

    xcodebuild clean -workspace OnePartner.xcworkspace -scheme OnePartner -configuration Release

    xcodebuild archive -project OnePartner.xcworkspace -scheme OnePartner -archivePath ./OnePartner.xcarchive

    xcodebuild -exportArchive -exportOptionsPlist ExportOptions.plist -archivePath OnePartner.xcarchive  -exportPath /Users/chinalife/Desktop/OnePartnerUat PROVISIONING_PROFILE_SPECIFIER=862d567c-64ca-4bed-aa7d-604cf4a92dfa.mobileprovision

    ExportOptions.plist文件放在/Users/chinalife/Desktop/OnePartnerUat目录

    Export.plist文件获取mobileprovision

    DistributionSummary.plist获取team id

    打包后路径 /

    /Users/chinalife/Desktop/OnePartnerUat/OnePartner.ipa

    相关文章

      网友评论

        本文标题:iOS与Android命令行打包

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