Logo of patwoz.de

xcode: error: Using the first of multiple matching destinations

If you're getting the following error message from xcodebuild:

error: --- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
{ platform:iOS Simulator, id:AA07801C-A281-4D5D-B26A-89E867A26C7F, OS:18.0, name:iPad (10th generation) }
...

Just delete all xcode instances from you macOS and reinstall XCode. That was the only way to fix it for me. For me it also fixed weird build issues within Xcode.

Good luck ;)