fastlane plugin to notarize a macOS app. 🛂
Notarize plugin provides a notarize
action to upload an app to Apple's notarization service, querying the result periodically until it's complete—which currently takes around 2 minutes. In case of success, it staples the app with the notarization ticket. In case of failure, it prints the log file listing all the issues.
To get started, add it to your project:
fastlane add_plugin notarize
Update your Fastfile
to use the notarize
action:
notarize(
package: app_path, # Path to package to notarize, e.g. .app bundle or disk image
bundle_id: bundle_id # Not required for .app bundles, bundle identifier to uniquely identify the package.
)
This action should prompt you for an Apple ID and password, using fastlane's built-in credentials manager. To use the action in a CI environment like Bitrise, CircleCI or Travis CI, you can set FASTLANE_USER
and FASTLANE_PASSWORD
environment variables. (Make sure to use secret environment variables, specifically for the password.)
Check out the example Fastfile
to see how to use this plugin. Try it by cloning the repo, running bundle exec fastlane test
.
To run both the tests and code style validation, run:
rake
To automatically fix many of the styling issues, use:
rubocop -a
If you have trouble using fastlane plugins, check out fastlane's Plugins Troubleshooting guide.
fastlane is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out fastlane.tools.
For more information about how the fastlane plugin system works, check out the Plugins documentation.