Swift Tricks

My own, mostly internal blog of Swift tips and tricks

Use fastlane match to update device list automatically

First, you can register the devices in your portal:

fastlane run register_devices devices_file:"/path/to/devices.txt"

Now we can regenerate the profiles and update the certs repo:

fastlane match adhoc --force_for_new_devices "true" --app_identifier "de.company.app" --verbose

# Some other options you can set in command line or via the Matchfile
#git_url("git@gitlab.com:yourcompany/iOS-Certificates.git")
#git_branch("master")
#storage_mode("git")
#team_id("ABCD1234")
#type("appstore")