After upgrading to Xcode 12.5.1, I always face this error in all of my bots (be it one targeting macOS or iOS). The error is "Configured destination is no longer supported or couldn't be found." I looked up the log of the integration and found this error:
xcodebuild: error: Unable to find a destination matching the provided destination specifier:
{ platform:com.apple.platform.macosx, arch:x86_64 }
Available destinations for the "<scheme name>" scheme:
{ platform:macOS, arch:x86_64h, id:5A53DA80-4CAD-55BF-95E9-BB2DCDF1AE19 }
Apparently, it has something to do with the "platform" which is different. But wait. Check the iOS one too.
xcodebuild: error: Unable to find a destination matching the provided destination specifier:
{ id:9CC49419-EB3E-4AD7-957B-615C2746F0AC }
Available destinations for the "<scheme name>" scheme:
{ platform:macOS, arch:x86_64h, id:5A53DA80-4CAD-55BF-95E9-BB2DCDF1AE19 }
This one is weird 🤔 I am sure this scheme is runnable on iOS. I run it using Xcode already and the tests passed and everything.
These same errors appears on another MacBook I am using for integration. The very same error, same Xcode version, and after upgrading Xcode Server.
Failed Trials:
- Reinstalling Xcode.
- Deleting all bots and creating them from scratch.
- Disabling parallel builds on the scheme (some one suggested that in Stackoverflow).
Currently, I am running my tests using Xcode which takes a lot of time since I need to start the text manually after finish tests on a specific simulator or device. With integration, I can set a single bot for all devices or even a series of bots with pending integrations.