X code"建立和归档和QUOT;在命令行 [英] Xcode "Build and Archive" from command line

查看:179
本文介绍了X code"建立和归档和QUOT;在命令行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

X $ C $ 3.2Ç提供了一个真棒新功能生成菜单下,建立和归档产生适合特设分布的.ipa文件。您也可以打开管理器,进入归档应用程序和提交应用iTunesConnect。

Xcode 3.2 provides an awesome new feature under the Build menu, "Build and Archive" which generates an .ipa file suitable for Ad Hoc distribution. You can also open the Organizer, go to "Archived Applications," and "Submit Application to iTunesConnect."

有没有用构建并归档命令行(作为构建脚本的一部分)的方法吗?我认为 X codebuild 将被莫名其妙地卷入,但页似乎并不说这事。

Is there a way to use "Build and Archive" from the command line (as part of a build script)? I'd assume that xcodebuild would be involved somehow, but the man page doesn't seem to say anything about this.

更新迈克尔Grinich要求澄清;这里是你不能使用命令行构建做什么,功能,你只能做使用X code的组织者后生成和归档。

UPDATE Michael Grinich requested clarification; here's what exactly you can't do with command-line builds, features you can ONLY do with Xcode's Organizer after you "Build and Archive."


  1. 您可以点击共享应用程序......与beta测试者分享您的IPA。由于纪尧姆指出的下方,由于一些X $ C $Ç魔法,这个IPA文件不需要单独发布的文件名为.mobileprovision的beta测试者需要安装;这就是神奇。没有命令行脚本可以做到这一点。例如,Arrix的剧本(提交五月一日)不符合这一要求。

  2. 更重要的是,你已经进行beta测试的生成后,可以点击提交申请到iTunes连接到完全相同的版本提交给苹果,你测试了很二,没有重建它。这是不可能的命令行,因为签署该应用程序是构建过程的一部分;您可以登录位的Ad Hoc beta测试或者您也可以登陆他们提交到App Store,但不能同时使用。没有建立在命令行IPA可以在手机上可以进行beta测试,然后直接提交给苹果公司。

我喜欢的人一起去,并证明我错了。这两个功能的工作在X code GUI很大,不能在命令行复制

I'd love for someone to come along and prove me wrong: both of these features work great in the Xcode GUI and cannot be replicated from the command line.

推荐答案

我发现如何构建和归档过程中从COMAND线自动化,我只是写了的博客文章中解释如何可以做到这一点。

I found how to automate the build and archive process from the comand line, I just wrote a blog article explaining how you can achieve that.

您必须使用的命令是 xcrun

/usr/bin/xcrun -sdk iphoneos PackageApplication -v "${RELEASE_BUILDDIR}/${APPLICATION_NAME}.app" -o "${BUILD_HISTORY_DIR}/${APPLICATION_NAME}.ipa" --sign "${DEVELOPER_NAME}" --embed "${PROVISONING_PROFILE}"

您会发现在文章的所有细节。如果您有任何问题,不要犹豫,问。

You will find all the details in the article. If you have any questions dont hesitate to ask.

这篇关于X code"建立和归档和QUOT;在命令行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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