xcodebuild: WARNING: Using the first of multiple matching destinations

When trying to generate build for mac catalyst using xcodebuild

xcodebuild archive -scheme MYSDK -destination="generic/platform=macOS,variant=Mac Catalyst" -archivePath archives/maccatalyst.xcarchive SKIP_INSTALL=NO BUILD_LIBRARIES_FOR_DISTRIBUTION=YES SUPPORTS_MACCATALYST=YES

Xcode warnings about multiple matching destinations

--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:x86_64, id:XX, name:My Mac }
{ platform:macOS, arch:x86_64, variant:Mac Catalyst, id:XX, name:My Mac }
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
{ platform:macOS, name:Any Mac }
{ platform:macOS, variant:Mac Catalyst, name:Any Mac }

Here native macOS is displayed first instead of Mac Catalyst. I have tried using "generic/platform=macOS,variant=Mac Catalyst,name=Any Mac". But the same issue occurred.

xcode version: Version 16.2 (16C5032a)

@Ganesh_Murugan

Please file a Feedback report then post the number here.

xcodebuild: WARNING: Using the first of multiple matching destinations
 
 
Q