Have an iPhone project where we use XCode to develop and use xcodebuild to create our production releases. We have a complete build system and scripts that we have been using for years, across many versions of MacOS and XCode, and without problems.
Problem: I just moved to a new Mac Mini M1 and the xcodebuild process now generates an error and fails. There have been no other changes in the code or the project between building on my old Mac Mini and the new M1 Mini.
WAS USING: MacOS 10.15.7, on Mac mini (Late 2012)
XCode version: 12.2
NOW USING MacOS 11.0.1, on Mac mini (M1, 2020)
XCode version: 12.2
The "xcodebuild archive" produces the following error:
error: Provisioning profile "XXXXXXX Development Profile" doesn't include the currently selected device "Chris’s Mac mini" (identifier XXXXXX-XXXXXXXXXX). (in target 'XXXXXXX' from project 'XXXXXX')
Now, "Chris’s Mac mini" is the name of my new development machine. I'm building a iPhone app, and our provisioning profile DOES contain a number of device IDs for various iPhones we test on.
Why would it care that my Mini is not in that list?
When I try, I can't even add a Mac ID to the provisioning profile
Our normal xcodebuild command line is rather complex, but even if I run it with:
xcodebuild -scheme <MyTargetName>
and nothing else, I still get the error. noted above
Any suggestion appreciated.
Chris