是否有 API 或任何其他方法来自动化提交过程? [英] Is there an API or any other method to automate the submission process?

查看:26
本文介绍了是否有 API 或任何其他方法来自动化提交过程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有许多功能和用户界面相似的应用程序.我通过从 .plist 文件中选取变量来创建用户界面.例如,我保存了从中获取数据的 API 源.

I have a number of apps which are similar in functionality and UI. I create the user interface by picking up variables from a .plist file. For instance, I save the source of the API from where I pick up the data.

创建新应用程序只需更改 .plist 文件中的值并重建应用程序,最后将其提交到 App Store.此外,我还需要创建 Ad-Hoc 配置文件并构建测试版本.

Creating a new app involves just changing the values in the .plist file and rebuilding the app, and finally submitting it to the App Store. Also, I need to create Ad-Hoc provision files and build test releases too.

我希望自动化这个过程.为此,我需要:

I wish to automate this process. For this I need to:

  1. 通过命令行界面构建应用程序.

  1. Build the app through the command line interface.

将二进制文件和其他所需文件/信息(应用程序图标、说明等)上传到 iTunes Connect.

Upload the binary and other required files/information (app icon, description, etc.) to iTunes Connect.

有什么我应该看的地方吗?

Any pointers where I should look?

推荐答案

可以使用 Apple 提供的命令行工具 xcodebuild 自动构建 Xcode 项目.

Building your Xcode projects can be automated by using the command line tool xcodebuild that Apple provides.

就应用创建过程的自动化而言,Apple 尚未在 Xcode GUI 之外公开此功能.您仍然可以自动执行此操作,并且有两个选项.

As far as automating the app creation process goes, Apple has not exposed this functionality outside of the Xcode GUI. You can still automate this and there are two options.

  1. 使用 Automator 创建脚本重播人类的所有动作将执行创建一个新的项目.本次重播的部分内容脚本,如项目名称等.可以定制和以编程方式提供给脚本.这种方法的一个缺点是这实际上将在GUI 并且会很慢.

  1. Use Automator to create a script that replays all the actions a human would perform to create a new project. Parts of this replay script like the project name etc. can be customized and programmatically fed to the script. A disadvantage of this method is that this will actually run on the GUI and will be slow.

如果你想通过命令行,你将不得不逆向工程的内容Xcode 项目文件具有扩展名.xcodeproj.它是压缩文件并包含一些XML 配置文件用于整个项目.没有公众号关于内容的文件这些 XML 文件.

If you want to do it all through the command line, you will have to reverse engineer the contents of the Xcode project file that has the extension .xcodeproj. It's a compressed file and contains a few XML configuration files for the entire project. There is no public documentation on the contents of these XML files.

为了自动化提交过程,您需要一个与 itunesconnect.apple.com 对话的脚本.这是您将应用程序提交到 App Store 的地方.查看此页面,了解有关 iTunes Connect 的更多信息.浏览器自动化工具在这里会很有帮助,尽管您可以滚动通过 HTTP 与 iTunes Connect 对话的自定义脚本.

For automating the submission process, you will need a script that talks to itunesconnect.apple.com. This is where you would submit your app to the App Store. Checkout this page for more info on iTunes Connect. A browser automation tool will be helpful here though you could roll your custom script that talks to iTunes Connect over HTTP.

总而言之,唯一可以随时使用的工具是 xcodebuild 工具.其他一切都必须逆向工程.

To summarize, the only thing that can be used readily out of the box is the xcodebuild tool. Everything else has to be reverse engineered.

这篇关于是否有 API 或任何其他方法来自动化提交过程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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