validate_app plugin
Getting Started
This project is a fastlane plugin. To
get started with fastlane-plugin-validate_app
, add it to your project by
running:
fastlane add_plugin validate_app
About validate_app
This plugin validates your ipa file using Application Loader's command line
tool altool
. By default, it will take your Apple ID username from your
Appfile and password from yoru Keychain. You may specify a password directly or
pass it via FASTLANE_PASSWORD
or DELIVER_PASSWORD
environment variables.
If you use 2 factor authentication, you may specify the application specific
password for the Application Loader tool via ALTOOL_2FA_PASSWORD
. This will
take precedence over your Apple ID's password.
Your password will not be printed out to build console log.
Returns nil
if build is valid, and an array of error objects if
build is invalid
Example
errors = validate_app(
ipa: "YourApp.ipa"
)
if errors.nil?
upload_to_testflight
else
UI.user_error! "IPA file did not pass validation."
end
Run tests for this plugin
To run both the tests, and code style validation, run
rake
To automatically fix many of the styling issues, use
rubocop -a
Issues and Feedback
For any other issues and feedback about this plugin, please submit it to this repository.
Troubleshooting
If you have trouble using plugins, check out the Plugins Troubleshooting guide.
Using fastlane Plugins
For more information about how the fastlane
plugin system works, check out
the Plugins
documentation.
About fastlane
fastlane is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out fastlane.tools.