简体   繁体   English

将Xcode 4“保存为企业或临时部署保存”作为构建后操作

[英]Setting up Xcode 4 'Save for Enterprise or Ad-Hoc Deployment' as a post-build action

I want to automate enterprise deployment as a post-build action which triggers after archiving, a script following these steps: 我想将企业部署自动化为生成后的操作,该操作在归档后触发,脚本遵循以下步骤:

  1. Use 'Distribute...' action in the Organizer for the latest archived build 在管理器中使用“分发...”操作获取最新的存档版本
  2. Use the 'Save for Enterprise or Ad-Hoc Deployment' option 使用“为企业或临时部署保存”选项
  3. Select the pre-defined signing identity 选择预定义的签名身份
  4. Activate 'Save for Enterprise Distribution' and fill out the fields (URL, Title etc.) 激活“保存以供企业分发”并填写字段(URL,标题等)
  5. Save the ipa and plist files in a given path 将ipa和plist文件保存在给定路径中

Is it possible to create a script automating these actions? 是否可以创建脚本来自动执行这些操作? Any help would be appreciated. 任何帮助,将不胜感激。

A lot of these things can be done using the terminal, hence you can use it to build your apps for distribution. 使用终端可以完成很多事情,因此您可以使用它来构建您的应用程序以进行分发。 This post might help you a lot, it did help me when I wanted to do CI using Jenkins. 这篇文章可能对您有很大帮助,当我想使用Jenkins进行CI时,它确实对我有帮助。

Running xcodebuild from a forked terminal 从派生的终端运行xcodebuild

I think you can use command line build tools to achieve the goal. 我认为您可以使用命令行构建工具来实现该目标。 The building and archiving actions in Xcode depend on these tools. Xcode中的构建和归档操作取决于这些工具。

Refer to: 参考:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM