How To Perform iOS App Validation From the Command Line

前端 未结 5 1348
广开言路
广开言路 2020-12-12 17:13

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?

UPDATE: Just to

5条回答
  •  佛祖请我去吃肉
    2020-12-12 17:59

    In the past I've used this command:

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

    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.

    UPDATE:

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

    -verbose
    -upload
    -warnings
    -errors
    -online
    

    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.

提交回复
热议问题