iTunes 应用程序加载器 - 自动化 [英] iTunes Application Loader - automation

查看:29
本文介绍了iTunes 应用程序加载器 - 自动化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自从最近 Apple 更改了 iTunes Connect 界面,人们需要使用 Application Loader 上传应用程序.

Since recently Apple changed the iTunes Connect interface, and people are required to upload apps with the Application Loader.

这很好,但我需要一个脚本来自动化我的工作.

That's nice but I need a script for automating my work.

App Loader 之类的应用如何实现自动化?

How can an app like App Loader be automated?

我在想用 AppleScript 写的东西……但我不知道它公开了哪些操作(如果有的话).发现某个地方我也可以在 AppleScript 中编写 GUI 脚本,但我找不到相关文档.

I was thinking of something written in AppleScript ... but I don't know what actions it exposes (if any). Found somewhere that I could also do GUI scripting from within AppleScript, but I can't find docs on that.

我需要什么......某种方式来触发输入操作(鼠标点击/键盘输入)并从显示的各种控件中读取文本.

What I need ... some way to trigger input actions (mouse clicks / keyboard input) and read the text from the various controls displayed.

如果这可以在 Python/Ruby 中实现,那就太好了,但 AppleScript 也不错.

If that would be possible in Python/Ruby it would be great, but AppleScript is fine.

OS X 是 10.6.4 版.

OS X is version 10.6.4.

感谢任何建议.

谢谢,

推荐答案

Application Loader 文档提到了可用于此目的的 altool.(https://itunesconnect.apple.com/docs/UsingApplicationLoader.pdf)

Application Loader documentation mentions an altool which can be used for this purpose. (https://itunesconnect.apple.com/docs/UsingApplicationLoader.pdf)

相关信息:

您可以使用 altool,Application Loader 的命令行工具验证应用程序二进制文件并将其上传到应用程序存储.

You can use altool, Application Loader’s command-line tool for validating and uploading your application binary files to the App Store.

在上传之前验证您的构建或自动上传有效的构建到 App Store,您可以将 altool 包含在您的连续集成系统.altool 位于应用程序中Loader.app/Contents/Frameworks/iTunesSoftwareService.framework/Versions/A/Support/文件夹.(所以完整路径将是/Applications/Xcode.app/Contents/Applications/Application\Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/Support/altool)

To validate your build before upload or to automate uploads of valid builds to the App Store, you can include altool in your continuous integration systems. altool is located in the Application Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/Versions/A/Support/ folder. (So full path would be /Applications/Xcode.app/Contents/Applications/Application\ Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/Support/altool)

要运行 altool,请在命令行中指定以下内容之一:

To run altool, specify one of the following at the command-line:

$ altool --validate-app -f 文件 -u 用户名 [-p 密码][--输出格式xml]

$ altool --upload-app -f 文件 -u 用户名 [-p密码] [--output-format xml]

地点:

--validate-app 指定您要验证指定的应用程序.

--validate-app Specifies you want to validate the specified application.

--upload-app 指定要上传指定的应用程序.

--upload-app Specifies you want to upload the specified application.

-f file 指定您正在验证或上传的应用程序的路径和文件名.

-f file Specifies the path and filename for the application you are validating or uploading.

-u username 指定您的用户名(Apple ID).

-u username Specifies your username (Apple ID).

-p password 指定您的用户密码.

-p password Specifies your user password.

--输出格式 [xml |normal] 指定您希望 Application Loader 以结构化 XML 格式或非结构化文本返回输出格式.默认情况下,Application Loader 以文本格式返回输出信息.

--output-format [xml | normal] Specifies that you want Application Loader to return output in structured XML format or unstructured text format. By default, Application Loader returns output information in text format.

这篇关于iTunes 应用程序加载器 - 自动化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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