加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

使用xcodebuild导出为macOS应用程序

发布时间:2020-12-14 17:19:42 所属栏目:百科 来源:网络整理
导读:我有一个构建脚本,可以将OS X应用程序导出到.app文件.这相当于进入 xcode和归档,然后选择导出,然后选择“导出为macOS应用程序”.该脚本用于工作得很好,直到从xcodebuild中删除了-exportFormat标志.现在脚本根本不起作用.我没有运气确定新标志应该是什么. 我
我有一个构建脚本,可以将OS X应用程序导出到.app文件.这相当于进入 xcode和归档,然后选择导出,然后选择“导出为macOS应用程序”.该脚本用于工作得很好,直到从xcodebuild中删除了-exportFormat标志.现在脚本根本不起作用.我没有运气确定新标志应该是什么.

我查看了-exportoptionsplist标志,但我不知道要放在我的plist中,或者这是否是正确的解决方案.脚本中的相关行如下:

#Archive the app
xcodebuild -workspace '/path/project.xcworkspace' -config Release -scheme 'Some Scheme' -archivePath ./archive archive

#Export the archive as in the APP format
xcodebuild -archivePath archive.xcarchive -exportArchive -exportPath 'exportedApp.app' -exportFormat App

如何获得-exportFormat App用于提供的结果?

解决方法

使用

xcodebuild 
-archivePath archive.xcarchive 
-exportArchive -exportPath 'exportedApp.app'
-exportOptionsPlist exportOptions.plist

并设置method = developer-id exportOptions.plist.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读