Fastlane Scan essentially wraps
xcodebuild | xcpretty, with additional properties.
-sflag specifies a scheme to use when building and running tests
-qflag allows you to specify the configuration to use when building the app.
-aflag allows you to specify a device to run the tests on
--only_testingallows you to specify a list of test bundles to run. It takes a comma-separated list of strings (e.g.
fastlane scan --only_testing "foo,bar,baz")
Fastlane Notarize handles the mac app notarization process. As of macOS Catalina, you need to notarize apps in order to not get a scary warning about how Apple can’t check the app for malicious code.
There’s a bit of setup here, especially for those, like me, who are unfamiliar with distributing mac apps. The release configuration needs to be signed with a developer ID (this can be generated from Fastlane Match with the
Once you have an App bundle built and correctly signed, you can call
notarize with the path to the package, the build id of the package, and the username of the apple id to sign it with. Additionally, you need to create an application specific password for that apple id, and set that to the
FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD environment variable. Do this even if you have the App Store Connect API key set up. For example, this is what you could have in your
notarize(package: "$PACKAGE_PATH", bundle_id: "$BUNDLE_ID", username: "$APPLE_ID")
Hopefully, it should work! If you run into any issues, then you can set the
verbose flags to
true to get logs out. Also be sure to call fastlane with the
--verbose flags. Yes, you need both for
notarize. At this point, it’s not very well integrated with the rest of Fastlane
Last updated: 2021-11-15 20:11:54 -0800