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