Repository: flutter
Issue: macOS builds don't filter Xcode warning output, causing log spam
Labels: tool,platform-mac,has reproducible steps,P2,platform-host-arm,found in release: 3.0,found in release: 3.1,team-tool,triaged-tool

### Steps to reproduce

```
flutter create --template plugin --platforms=macos my_plugin
cd my_plugin/example
flutter run -d macos
```

### Actual Output

```
Launching lib/main.dart on macOS in debug mode...
Running pod install...                                             628ms
objc[19345]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libamsupport.dylib (0x1fa10b640) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x105f942c8). One of the two will be used. Which one is undefined.
objc[19345]: Class AMSupportURLSession is implemented in both /usr/lib/libamsupport.dylib (0x1fa10b690) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x105f94318). One of the two will be used. Which one is undefined.
objc[19345]: Class AppleTypeCRetimerRestoreInfoHelper is implemented in both /usr/lib/libauthinstall.dylib (0x1fa10b458) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x105f944f8). One of the two will be used. Which one is undefined.
objc[19345]: Class AppleTypeCRetimerFirmwareAggregateRequestCreator is implemented in both /usr/lib/libauthinstall.dylib (0x1fa10b4a8) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x105f94548). One of the two will be used. Which one is undefined.
objc[19345]: Class AppleTypeCRetimerFirmwareRequestCreator is implemented in both /usr/lib/libauthinstall.dylib (0x1fa10b4f8) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x105f94598). One of the two will be used. Which one is undefined.
objc[19345]: Class ATCRTRestoreInfoFTABFile is implemented in both /usr/lib/libauthinstall.dylib (0x1fa10b548) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x105f945e8). One of the two will be used. Which one is undefined.
objc[19345]: Class AppleTypeCRetimerFirmwareCopier is implemented in both /usr/lib/libauthinstall.dylib (0x1fa10b598) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x105f94638). One of the two will be used. Which one is undefined.
objc[19345]: Class ATCRTRestoreInfoFTABSubfile is implemented in both /usr/lib/libauthinstall.dylib (0x1fa10b5e8) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x105f94688). One of the two will be used. Which one is undefined.
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:arm64, id:00006000-001C30492ED2801E }
{ platform:macOS, arch:x86_64, id:00006000-001C30492ED2801E }
Building macOS application...                                           
Syncing files to device macOS...                                    39ms

Flutter run key commands.
r Hot reload. 🔥🔥🔥
R Hot restart.
h List all available interactive commands.
d Detach (terminate "flutter run" but leave application running).
c Clear the screen
q Quit (terminate the application on the device).

💪 Running with sound null safety 💪

An Observatory debugger and profiler on macOS is available at: http://127.0.0.1:63719/eDaYZ2pVMk8=/
The Flutter DevTools debugger and profiler on macOS is available at: http://127.0.0.1:9100?uri=http://127.0.0.1:63719/eDaYZ2pVMk8=/
```

App runs as expected.

### Expected output

```
Launching lib/main.dart on macOS in debug mode...
Running pod install...                                             628ms
Building macOS application...                                           
Syncing files to device macOS...                                    39ms

Flutter run key commands.
r Hot reload. 🔥🔥🔥
R Hot restart.
h List all available interactive commands.
d Detach (terminate "flutter run" but leave application running).
c Clear the screen
q Quit (terminate the application on the device).

💪 Running with sound null safety 💪

An Observatory debugger and profiler on macOS is available at: http://127.0.0.1:63719/eDaYZ2pVMk8=/
The Flutter DevTools debugger and profiler on macOS is available at: http://127.0.0.1:9100?uri=http://127.0.0.1:63719/eDaYZ2pVMk8=/
```

App runs as expected.

### Found on

```
$ flutter --version
Flutter 3.0.1 • channel stable • git@github.com:flutter/flutter.git
Framework • revision fb57da5f94 (3 weeks ago) • 2022-05-19 15:50:29 -0700
Engine • revision caaafc5604
Tools • Dart 2.17.1 • DevTools 2.12.2
```

### Some testing around

I've seen the same error messages appear with `xcodebuild` locally. Using `arch -x86_64 xcodebuild` makes the errors go away.

### Possible workaround

If we detect we are running on M1, we should invoke `xcodebuild` with Rosetta.

Though the better question is, why do we have multiple dylibs when running on arm64 mode?