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

swift – XCodeBuild -exportArchive不允许我指定文件名

发布时间:2020-12-14 05:26:18 所属栏目:百科 来源:网络整理
导读:我正在忙于构建将构建iOS应用程序的Jenkins构建.我已成功使用此命令创建存档: xcodebuild archive -archivePath build/app.xcarchive 现在我正在尝试通过指定输出文件名导出该存档,但无法使其工作.在下面的示例中,我想要一个名为app.ipa的输出文件,但我得到
我正在忙于构建将构建iOS应用程序的Jenkins构建.我已成功使用此命令创建存档:
xcodebuild archive -archivePath build/app.xcarchive

现在我正在尝试通过指定输出文件名导出该存档,但无法使其工作.在下面的示例中,我想要一个名为app.ipa的输出文件,但我得到的是一个名为app.ipa的文件夹名称为.ipa的ipa文件

xcrun xcodebuild -exportArchive -exportPath build/app.ipa -archivePath build/app.xcarchive/ -exportOptionsPlist exportOptions.plist

Outputs a file /build/app.ipa/<projectname>.ipa

XCodeBuild的Apples文档说您可以指定包含文件名的输出路径:

-exportPath destinationpath
Specifies the destination for the exported product,including the name of the exported file.

https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man1/xcodebuild.1.html

这样做的原因是我想保持构建通用,这样我通过它发送的任何项目都将产生app.ipa,而不需要跟踪项目名称和不同的输出文件等.

这是作为开放雷达中的错误提交的: “xcodebuild exportArchive -exportPath” does not write what it’s documented to write

(编辑:李大同)

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

    推荐文章
      热点阅读