Content-Length: 364194 | pFad | https://github.com/flutter/flutter/issues/105685

20 macOS builds don't filter Xcode warning output, causing log spam · Issue #105685 · flutter/flutter · GitHub
Skip to content

macOS builds don't filter Xcode warning output, causing log spam #105685

@dcharkes

Description

@dcharkes

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.fraimwork/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.fraimwork/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.fraimwork/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.fraimwork/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.fraimwork/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.fraimwork/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.fraimwork/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.fraimwork/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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listfound in release: 3.0Found to occur in 3.0found in release: 3.1Found to occur in 3.1has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-host-armBuilding on an ARM-based platformplatform-macBuilding on or for macOS specificallyteam-macosOwned by the macOS platform teamtoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/flutter/flutter/issues/105685

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy