iOS与Android命令行打包


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目录

iOS与Android命令行打包_第1张图片

Export.plist文件获取mobileprovision

iOS与Android命令行打包_第2张图片

DistributionSummary.plist获取team id

iOS与Android命令行打包_第3张图片

打包后路径 /

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

你可能感兴趣的:(iOS与Android命令行打包)