'Provisioning profile "iOS Team Provisioning Profile: doesn't include the currently selected device" Flutter - MacOS
I'm able to build the macOS app from Xcode and run successfully, but when I'm trying to run it from Android Studio it's giving me the following error:
Provisioning profile "mac Team Provisioning Profile: doesn't include the currently selected device"
If I go to my apple developer account I can see my device UUID there as well.
Solution 1:[1]
That has been solved by:
- Deleting the provisioning profiles from the following path:
~/Library/MobileDevice/Provisioning/Profiles/
Flutter clean
Run again
EDIT
You might need to open the project from Xcode and build it from there, and don't forget the pod install
command
Solution 2:[2]
You can try running the project via xcode first then running it via flutter SDK. This solved the mentioned issue for me.
Solution 3:[3]
If you're on Mac M1, your device will have two UUIDs: one when Xcode / xcodebuild is running natively, the other when running under Rosetta.
To register your device ID under Rosetta:
- Applications folder > Xcode > right-click > Get Info > check "Open using Rosetta"
- Open app in Xcode
- Runner > Runner > Signing & Capabilities > ensure "Automatically manage signing" is checked
- Xcode will give you an error about the device ID not being in the provisioning profile > click the fix button
- Repeat steps 3. & 4. for any extensions you might have
Xcode will add the device ID to your profile. You can now uncheck "Open using Rosetta" to have Xcode running natively again.
See also this github issue.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | |
Solution 2 | Arham S C |
Solution 3 | Sebastian |