如何从命令行执行iOS应用程序验证 [英] How To Perform iOS App Validation From the Command Line

查看:221
本文介绍了如何从命令行执行iOS应用程序验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以通过命令行执行iOS应用程序的本地验证(可以在Archives下的Organizer中查看)?

Is it possible to perform the local Validation for iOS applications (which can be see in the Organizer under Archives) function via the command line?

更新:仅限于澄清 - 这里的目标是最终使这个验证成为iOS应用程序持续集成过程的一部分。

UPDATE: Just to clarify - the goal here is to eventually make this validation a part of the continuous integration process for my iOS applications.

推荐答案

过去我使用过这个命令:

In the past I've used this command:

xcrun -sdk iphoneos Validation /path/to/MyApp.app or /path/to/MyApp.ipa

这将检查代码签名,图标尺寸等。我不确定是否Xcode Organizer或Application Loader应用程序除此工具外还进行任何其他验证,并且该工具本身没有我可以找到的帮助或命令行标记。

This will check the codesigning, icon dimensions etc. I'm not sure if the Xcode Organizer or Application Loader app do any other validation in addition to this tool, and the tool itself has zero help or command line flags that I can find.

更新

这个问题促使我深入挖掘。运行字符串工具会显示以下开关:

This question has prompted me to dig a bit deeper. Running the strings tool reveals the following switches:

-verbose
-upload
-warnings
-errors
-online

-online 选项显然会验证iTunes连接中第一个可用应用程序的二进制文件,但我还没想出如何将用户名/密码传递给命令。但是我猜测持续集成你可能只想进行本地验证。

The -online option apparently will validate the binary for the first available app in iTunes connect, but I have not figured out how to pass a username/password to the command. However I'm guessing for continuous integration you probably only want the local validation.

这篇关于如何从命令行执行iOS应用程序验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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