I am using match to handle our certs/profiles for iOS app. Our iOS app can run on M1 macs (as designed for iPad, not catalyst.). Match does regenerate the provisioning profiles and does include all new iOS devices, but excludes mac devices despite setting the "allow mac devices" switch to the on state. I don't see any flags or parameters for Fastlane Match that mention anything about including macs. Has anyone been able to work through this?
match(
type: "development",
git_url: ...,
app_identifier: ...,
api_key: ...,
verbose: true
force: true
)
I found this post (which was closed)
UPDATE (Feb 09, 2024): Posting a follow up that Fastlane is now capable. I was successful using version 2.219.0, though I can't speak to earlier versions.
I found a workaround if you are willing to locally modify a line of code for fastlane sigh.
First you need to find where fastlane is installed. For me (macOS) it is installed here:
~/.gem/gems/fastlane-2.206.2
. You might have fastlane installed in your project folder$projectRoot/vendor/bundle/ruby/2.6.0/gems/fastlane-2.206.2
.Next you will modify a file in the
sigh
tool. Use a text editor to open the file:vim ~/.gem/gems/fastlane-2.206.2/sigh/lib/sigh/runner.rb
.Search for
device_classes =
. For me this was around line 272:Under the case
when 'ios'
we will append a line:Spaceship::ConnectAPI::Device::DeviceClass::MAC
. It will look like this:Save and quit.
Re-run fastlane match to regenerate your certificates like normal. Check your new provisioning profile on developer.apple.com. Go into edit mode, scroll down to the device list to see if it did include all iOS & macOS devices.
One final thing if you are still having trouble. (Still editing your provisioning profile) ensure that the "include mac devices" switch is checked.
I'm not sure if this is actually helpful as match regenerates the provisioning profile, but I thought I'd mention it. Maybe one of you can post back with an answer.
Note that you will need to repeat this modification each time install an update to fastlane.