So at the end, it seems XCode wants the Hardware UUID but the provisioning profile only wants the Provisioning UUID. So they never match...
That is the problem.
Really wired is that when adding a device in the developer account and Platform macOS is selected it says:
Name your device and enter its Unique Device Identifier (UDID).
but the description on the form says:
Device ID (UUID)
I resolved this with the following steps, but I dontt know if all of them have to be done:
deleted all Dev Certs from the mac
deleted all Provisioning Profiles from the mac
deleted the Provisioning Profile from the Account
Added the device 3x times 1x with UUID as mac
1x with UDID as mac
1x with UDID as iOS
Created a new profile with select all devices. (should be 2 for mac Development)
Now Xcode says the profile includes 2 devices and everything works on my M1 Mac mini :)
This really sucked, I struggled with this for two days. :( But maybe it is because this is my first time working with a mac...
Topic:
Code Signing
SubTopic:
Certificates, Identifiers & Profiles
Tags: