xcodebuild destination for any mac

I have a script that has not been updated in a while that compiles my application using xcodebuild. I'm getting this warning which leads me to believe that it's only building the first destination. But when I check the binary with lipo -archs it shows has having both; which I want.

--- xcodebuild: WARNING: Using the first of multiple matching destinations: { platform:macOS, arch:arm64, id:00006021-001071911ABBC01E, name:My Mac } { platform:macOS, arch:x86_64, id:00006021-001071911ABBC01E, name:My Mac }

First, why the warning if I'm trying to build a Universal binary, and can I turn this off. Or should I leave it?

Thanks!

Maybe you'll find the answer here: https://mokacoding.com/blog/xcodebuild-destination-options/

Source : https://forums.developer.apple.com/forums/thread/702296

xcodebuild destination for any mac
 
 
Q