🇩🇪
Back to blog

xcode: error: Using the first of multiple matching destinations

How to fix the error "Using the first of multiple matching destinations"

xcode: error: Using the first of multiple matching destinations

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

Terminal window
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 ;)

Freelance Developer

I help companies build high-quality software - primarily mobile and web applications, but also backend systems and DevOps infrastructure. From startups to enterprises, I bring ideas to life with clean code and modern technologies.