Unity Xcode 命令行构建

2022-07-12  本文已影响0人  CERI_CHANNEL

清理工程

xcodebuild clean -project {xcode_project}/Unity-iPhone.xcodeproj -alltargets

构建工程

xcodebuild archive -project {xcode_project}/Unity-iPhone.xcodeproj -scheme 'Unity-iPhone' -configuration '{build_type}' -archivePath {archive_path} CODE_SIGN_IDENTITY='{CODE_SIGN_IDENTITY}' PROVISIONING_PROFILE{APP}='{PROVISIONING_PROFILE}' DEVELOPMENT_TEAM='{DEVELOPMENT_TEAM}' PRODUCT_BUNDLE_IDENTIFIER={bundle_identifier} CODE_SIGN_STYLE='Manual'

导出包

xcodebuild -exportArchive -archivePath {archive_path} -exportPath {export_path} -exportOptionsPlist {export_Options_plist}

参数:

工程路径 构建类型 存档路径 证书标题 证书UUID 证书名称 导出路径 导出选项
string string string string string string string string
xcode_project build_type archive_path CODE_SIGN_IDENTITY PROVISIONING_PROFILE PROVISIONING_PROFILE_SPECIFIER export_path export_Options_plist

CODE_SIGN_IDENTITY: 证书标题
PROVISIONING_PROFILE: 证书的UUID security cms -D -i 签名文件
PROVISIONING_PROFILE_SPECIFIER: 证书名称


如果因为需要设置new building system而失败,请参考
Unity 在使用xcodebuild构建ipa时,因为需要设置new building system而失败



上一篇 下一篇

猜你喜欢

热点阅读