Unity3D 命令行打包xcode工程(commandline build )

M_PROVISIONING_PROFILE="a8efop6a-33pt-5522-pokq-52d6d800aubv"#证书配置
M_CODE_SIGN_IDENTITY="iPhone Distribution: XXXXXX Technology INC. (XXXXXX)"#证书配置
M_XCODE_PATH="/User/xxxxxx/xxxxxx/xcode_project_root/"#XCODE工程目录路径
M_XCODE_NAME="Unity-iPhone"
M_ARCHIVE_PATH="./tmp/archive"
M_EXPORT_PATH="./tmp/ipa"
cd ${M_XCODE_PATH}

导出archive

xcodebuild clean archive -scheme ${M_XCODE_NAME} -target ${M_XCODE_NAME} -archivePath ${M_ARCHIVE_PATH} -configuration Release PROVISIONING_PROFILE="${M_PROVISIONING_PROFILE}" CODE_SIGN_IDENTITY="${M_CODE_SIGN_IDENTITY}"

导出ipa

xcodebuild -exportArchive -archivePath "${M_ARCHIVE_PATH}.xcarchive" -exportPath "${M_EXPORT_PATH}" -exportOptionsPlist "Info.plist" -allowProvisioningUpdates

 

注意Info.plist文件中的内容修改

provisioningProfiles

com.baidu.gamename
a8efop6a-33pt-5522-pokq-52d6d800aubv

dev包的填写的内容

method
development

dis包的填写的内容

method
app-store

 

 

 

你可能感兴趣的:(游戏开发)