XCodeBuild -exportArchive不允许我指定文件名 [英] XCodeBuild -exportArchive wont allow me to specify filename

查看:939
本文介绍了XCodeBuild -exportArchive不允许我指定文件名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在忙于Jenkins构建,它将构建iOS应用程序.我已经成功使用以下命令成功创建了档案:

I'm busy working on a Jenkins build that will be building iOS applications. I have managed to create an archive successfully with this command:

xcodebuild archive -archivePath build/app.xcarchive 

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

Now I'm trying to export that archive with specifying the output file name, but can't get this to work.In the example below I want an output file called app.ipa, but all I get is a folder called app.ipa with an ipa file inside name .ipa

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

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

有关XCodeBuild的Apple文档说,您可以指定输出路径,包括文件名:

Apples documentation for XCodeBuild says that you can specify the output path including file name:

-exportPath目标路径 指定导出产品的目的地,包括导出文件的名称.

-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,而无需跟踪项目名称和不同的输出文件等.

The reason for this is that I would like to keep the build generic so that any project I send through it will result in an app.ipa without me needing to keep track of project names and different output files etc.

推荐答案

这是打开雷达中的错误:" xcodebuild exportArchive -exportPath不写记录的内容

This is filed as a bug in open radar: "xcodebuild exportArchive -exportPath" does not write what it's documented to write

这篇关于XCodeBuild -exportArchive不允许我指定文件名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆