找回密码
 立即注册
查看: 291|回复: 0

Unity Xcode 命令行构建

[复制链接]
发表于 2022-7-13 13:24 | 显示全部楼层 |阅读模式
清理工程

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='{PROVISIONING_PROFILE}'

导出包

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

参数:
工程路径构建类型存档路径签名身份配置文件导出路径导出选项
stringstringstringstringstringstringstring
xcode_projectbuild_typearchive_pathCODE_SIGN_IDENTITYPROVISIONING_PROFILEexport_pathexport_Options_plist

获取 CODE_SIGN_IDENTITY = security cms -D -i 签名文件

如果因为需要设置new building system而失败,请参考
Unity 在使用xcodebuild构建ipa时,因为需要设置new building system而失败
懒得打字嘛,点击右侧快捷回复 【右侧内容,后台自定义】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Unity开发者联盟 ( 粤ICP备20003399号 )

GMT+8, 2024-5-19 02:22 , Processed in 0.118188 second(s), 25 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表