Skip to content

Mac plugin_lint_mac is flaky with incorrect FlutterMacOS.framework architecture #112146

Closed

Description

@keyonghan

It started flaking on commit: 7b6d25c

It has flaked 6 times on two bots: build801-m9 and build822-m9

https://ci.chromium.org/ui/p/flutter/builders/prod/Mac%20plugin_lint_mac/8910/overview
https://ci.chromium.org/ui/p/flutter/builders/prod/Mac%20plugin_lint_mac/8914/overview
https://ci.chromium.org/ui/p/flutter/builders/prod/Mac%20plugin_lint_mac/8920/overview
https://ci.chromium.org/ui/p/flutter/builders/prod/Mac%20plugin_lint_mac/8946/overview
https://ci.chromium.org/ui/p/flutter/builders/prod/Mac%20plugin_lint_mac/8953/overview
https://ci.chromium.org/ui/p/flutter/builders/prod/Mac%20plugin_lint_mac/8952/overview

 /opt/s/w/ir/x/t/CocoaPods-Lint-20220920-11126-11gyx2z-integration_test_macos/Pods/Pods.xcodeproj: warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.11, but the range of supported deployment target versions is 10.13 to 13.1. (in target 'FlutterMacOS' from project 'Pods')
[plugin_lint_mac] [STDOUT] stderr:     ** BUILD FAILED **
[plugin_lint_mac] [STDOUT] stderr:     
[plugin_lint_mac] [STDOUT] stderr:     
[plugin_lint_mac] [STDOUT] stderr:     The following build commands failed:
[plugin_lint_mac] [STDOUT] stderr:     	Ld /Users/chrome-bot/Library/Developer/Xcode/DerivedData/App-ezvkxovtqsopcwdhpnsajpaoapnh/Build/Intermediates.noindex/Pods.build/Release/integration_test_macos.build/Objects-normal/arm64/Binary/integration_test_macos normal arm64 (in target 'integration_test_macos' from project 'Pods')
[plugin_lint_mac] [STDOUT] stderr:     (1 failure)
[plugin_lint_mac] [STDOUT] stdout:   Testing with `xcodebuild`.
[plugin_lint_mac] [STDOUT] stdout:  -> integration_test_macos (0.0.1)
[plugin_lint_mac] [STDOUT] stdout:     - ERROR | [OSX] xcodebuild: Returned an unsuccessful exit code.
[plugin_lint_mac] [STDOUT] stdout:     - NOTE  | xcodebuild:  note: Using codesigning identity override: 
[plugin_lint_mac] [STDOUT] stdout:     - NOTE  | [OSX] xcodebuild:  note: Building targets in dependency order
[plugin_lint_mac] [STDOUT] stdout:     - NOTE  | [OSX] xcodebuild:  Pods.xcodeproj: warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.11, but the range of supported deployment target versions is 10.13 to 13.1. (in target 'Pods-App' from project 'Pods')
[plugin_lint_mac] [STDOUT] stdout:     - NOTE  | [OSX] xcodebuild:  /opt/s/w/ir/x/t/CocoaPods-Lint-20220920-11126-11gyx2z-integration_test_macos/App.xcodeproj: warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.11, but the range of supported deployment target versions is 10.13 to 13.1. (in target 'App' from project 'App')
[plugin_lint_mac] [STDOUT] stdout:     - NOTE  | [OSX] xcodebuild:  Pods.xcodeproj: warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.11, but the range of supported deployment target versions is 10.13 to 13.1. (in target 'integration_test_macos' from project 'Pods')
[plugin_lint_mac] [STDOUT] stdout:     - NOTE  | [OSX] xcodebuild:  ld: warning: ignoring file FlutterMacOS/FlutterMacOS.framework/FlutterMacOS, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
[plugin_lint_mac] [STDOUT] stdout:     - NOTE  | [OSX] xcodebuild:  clang: error: linker command failed with exit code 1 (use -v to see invocation)
[plugin_lint_mac] [STDOUT] stdout:     - NOTE  | [OSX] xcodebuild:  Pods.xcodeproj: warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.11, but the range of supported deployment target versions is 10.13 to 13.1. (in target 'FlutterMacOS' from project 'Pods')
[plugin_lint_mac] [STDOUT] stdout: 
[plugin_lint_mac] [STDOUT] stdout: [!] integration_test_macos did not pass validation, due to 1 error.

Activity

  1. added
    c: flakeTests that sometimes, but not always, incorrectly pass
    on Sep 22, 2022
  2. stuartmorgan-g commented on Sep 22, 2022

    @stuartmorgan-g
    Contributor

    The deployment target warning is not related; that should be a harmless messsage we see in all runs. The actual problem is:

    ld: warning: ignoring file /opt/s/w/ir/x/t/CocoaPods-Lint-20220921-39945-uhz1wf-integration_test_macos/Pods/FlutterMacOS/FlutterMacOS.framework/FlutterMacOS, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
    

    @jmagman Any idea how we would flakily be getting the wrong Pod here?

  3. changed the title [-]Mac plugin_lint_mac is flaky with unsupported `MACOSX_DEPLOYMENT_TARGET`[/-] [+]Mac plugin_lint_mac is flaky with incorrect `FlutterMacOS.framework` architecture[/+] on Sep 22, 2022
  4. jmagman commented on Sep 22, 2022

    @jmagman
    Member

    This is grabbing a pretty old version of the published FlutterMacOS pod, perhaps one that wasn't built for both archs? This might need a pod repo update. No idea why that would have just started happening though.

  5. jmagman commented on Sep 22, 2022

    @jmagman
    Member

    No idea why that would have just started happening though.

    Oh wait yes I do #111432

  6. github-actions commented on Oct 12, 2022

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  7. locked as resolved and limited conversation to collaborators on Oct 12, 2022
  8. added
    P0Critical issues such as a build break or regression
    and removed on Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

P0Critical issues such as a build break or regressionc: flakeTests that sometimes, but not always, incorrectly passpackageflutter/packages repository. See also p: labels.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions