Is there an API or any other method to automate the submission process?

China☆狼群 提交于 2019-12-02 20:51:57

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

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. 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.

  2. 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.

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.

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.

It's 2016, and now we have the iTunesConnect Transporter command line tool with a quick start guide here.

Also, have a look at this OSS project that wraps the Transporter tools (and others) in a friendly way:

https://fastlane.tools

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!