How To Perform iOS App Validation From the Command Line

前端 未结 5 1354
广开言路
广开言路 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 18:12

    If you want only to validate the signed ipa file, there is tool to do it altool

    $ /Applications/Xcode.app/Contents/Applications/Application\ Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/Support/altool -h
    Copyright (c) 2009-2015, Apple Inc.  Version 1.1
    
    Usage: altool --validate-app -f file -t platform -u username [-p password]
           altool --upload-app -f file -t platform -u username -p password
    
     -f, --file                         Filename.
     -t, --type                         Type/Platform: osx, ios.
     -u, --username                     Username. Required to connect for validation and upload.
     -p, --password                     Password. Required if username specified.  Password is read from stdin if one is not supplied.
                                        May use @keychain: or @env: prefixes followed by the keychain or environment variable lookup name.
                                        e.g. -p @env:SECRET which would use the value in the SECRET environment variable.
    
     -v, --validate-app                 Validate an app archive. The username, password, and file path to app archive are required.
         --upload-app                   Uploads the given app archive.  The username, password, and file path to app archive are required.
         --output-format [xml | normal] 'xml' displays error output in a structured format; 'normal' outputs in an unstructured format (default)
    
     -h, --help                         Display this output.
    

    For ex.

     /Applications/Xcode.app/Contents/Applications/Application\ Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/Support/altool -v -f APP.ipa -u itunesconnect@user.com -p password
    

提交回复
热议问题