When I try to archive my Unity game for iOS using the following command:
xcodebuild \
-workspace "${IOS_PROJ}/Unity-iPhone.xcworkspace" \
-scheme Unity-iPhone \
-derivedDataPath build \
-configuration Release \
-archivePath "${ARCHIVE_PATH}" \
archive
I get the following error message:
error: Provisioning profile "PROFILE NAME" doesnt include the currently selected device "M2 Mac Mini" (identifier {MAC UUID}).
I've checked my provisioning profile and it includes my device UDID, but the error message is referencing a UUID instead. How can I fix this issue?
I tried adding my UUID on my profile but apple doesn't let me do that.
Any help would be greatly appreciated. Thanks!