You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
flutter/flutter tree broken on Mac_ios platform_views_scroll_perf_ios__timeline_summary failure #156606
[2024-10-11 11:12:50.632237] [STDOUT] stdout: ld: warning: Could not find or use auto-linked library 'swiftXPC': library 'swiftXPC' not found
[2024-10-11 11:12:50.632260] [STDOUT] stdout: ld: warning: Could not find or use auto-linked framework 'CoreAudioTypes': framework 'CoreAudioTypes' not found
[2024-10-11 11:12:50.632361] [STDOUT] stdout: ld: warning: Could not find or use auto-linked framework 'MarketplaceKit': framework 'MarketplaceKit' not found
[2024-10-11 11:12:50.632379] [STDOUT] stdout: ld: Undefined symbols:
[2024-10-11 11:12:50.632417] [STDOUT] stdout: enum case for MarketplaceKit.AppDistributor.testFlight(MarketplaceKit.AppDistributor.Type) -> MarketplaceKit.AppDistributor, referenced from:
[2024-10-11 11:12:50.632425] [STDOUT] stdout: l007 in GoogleMobileAds[arm64][422](GADMarketplaceKitSignals.o)
[2024-10-11 11:12:50.632490] [STDOUT] stdout: l008 in GoogleMobileAds[arm64][422](GADMarketplaceKitSignals.o)
[2024-10-11 11:12:50.632511] [STDOUT] stdout: enum case for MarketplaceKit.AppDistributor.marketplace(MarketplaceKit.AppDistributor.Type) -> (Swift.String) -> MarketplaceKit.AppDistributor, referenced from:
[2024-10-11 11:12:50.632580] [STDOUT] stdout: l007 in GoogleMobileAds[arm64][422](GADMarketplaceKitSignals.o)
[2024-10-11 11:12:50.632591] [STDOUT] stdout: l008 in GoogleMobileAds[arm64][422](GADMarketplaceKitSignals.o)
[2024-10-11 11:12:50.632598] [STDOUT] stdout: enum case for MarketplaceKit.AppDistributor.other(MarketplaceKit.AppDistributor.Type) -> MarketplaceKit.AppDistributor, referenced from:
[2024-10-11 11:12:50.632606] [STDOUT] stdout: l007 in GoogleMobileAds[arm64][422](GADMarketplaceKitSignals.o)
[2024-10-11 11:12:50.632656] [STDOUT] stdout: l008 in GoogleMobileAds[arm64][422](GADMarketplaceKitSignals.o)
[2024-10-11 11:12:50.632679] [STDOUT] stdout: static MarketplaceKit.AppDistributor.current.getter : MarketplaceKit.AppDistributor, referenced from:
[2024-10-11 11:12:50.632686] [STDOUT] stdout: function signature specialization <Arg[0] = Dead> of static GoogleMobileAds.GADMarketplaceKitSignals.appDistributor() async -> Swift.String in GoogleMobileAds[arm64][422](GADMarketplaceKitSignals.o)
[2024-10-11 11:12:50.632729] [STDOUT] stdout: async function pointer to static MarketplaceKit.AppDistributor.current.getter : MarketplaceKit.AppDistributor, referenced from:
[2024-10-11 11:12:50.632759] [STDOUT] stdout: function signature specialization <Arg[0] = Dead> of static GoogleMobileAds.GADMarketplaceKitSignals.appDistributor() async -> Swift.String in GoogleMobileAds[arm64][422](GADMarketplaceKitSignals.o)
[2024-10-11 11:12:50.632831] [STDOUT] stdout: enum case for MarketplaceKit.AppDistributor.appStore(MarketplaceKit.AppDistributor.Type) -> MarketplaceKit.AppDistributor, referenced from:
[2024-10-11 11:12:50.632862] [STDOUT] stdout: l007 in GoogleMobileAds[arm64][422](GADMarketplaceKitSignals.o)
[2024-10-11 11:12:50.632886] [STDOUT] stdout: l008 in GoogleMobileAds[arm64][422](GADMarketplaceKitSignals.o)
[2024-10-11 11:12:50.632966] [STDOUT] stdout: type metadata accessor for MarketplaceKit.AppDistributor, referenced from:
[2024-10-11 11:12:50.632994] [STDOUT] stdout: l007 in GoogleMobileAds[arm64][422](GADMarketplaceKitSignals.o)
[2024-10-11 11:12:50.633002] [STDOUT] stdout: l008 in GoogleMobileAds[arm64][422](GADMarketplaceKitSignals.o)
[2024-10-11 11:12:50.633010] [STDOUT] stdout: nominal type descriptor for MarketplaceKit.AppDistributor, referenced from:
[2024-10-11 11:12:50.633034] [STDOUT] stdout: _symbolic _____Sg 14MarketplaceKit14AppDistributorO in GoogleMobileAds[arm64][422](GADMarketplaceKitSignals.o)
[2024-10-11 11:12:50.633044] [STDOUT] stdout: __swift_FORCE_LOAD_$_swiftXPC, referenced from:
[2024-10-11 11:12:50.633053] [STDOUT] stdout: __swift_FORCE_LOAD_$_swiftXPC_$_GoogleMobileAds in GoogleMobileAds[arm64][422](GADMarketplaceKitSignals.o)
[2024-10-11 11:12:50.633062] [STDOUT] stdout: clang: error: linker command failed with exit code 1 (use -v to see invocation)
I'm not sure why it's not finding those frameworks though. MarketplaceKit is 17.4+ so I thought it might be that, but that wouldn't explain swiftXPC and CoreAudioTypes. Although CoreAudioTypes may be noise here since none of the missing symbols are from there.
The app appears to build fine. I don't see any ld: warning: Could not find or use auto-linked... warnings in my build output.
However, Xcode traps immediately upon launching the application with the following output:
dyld[3023]: Library not loaded: @rpath/libswiftCore.dylib
Referenced from: <B53D6443-1D50-3CA4-B9BA-A49F761D2D6C> /private/var/containers/Bundle/Application/40927258-5A5C-471D-BA8D-E5144E9A7A1F/Runner.app/Runner
Reason: tried: '/usr/lib/system/introspection/libswiftCore.dylib' (no such file, not in dyld cache), '/private/var/containers/Bundle/Application/40927258-5A5C-471D-BA8D-E5144E9A7A1F/Runner.app/Frameworks/libswiftCore.dylib' (no such file), '/private/var/containers/Bundle/Application/40927258-5A5C-471D-BA8D-E5144E9A7A1F/Runner.app/Frameworks/libswiftCore.dylib' (no such file)
The same command works on the parent commit, 82ebb74.
I can reproduce on the parent commit 82ebb74 by bumping google_mobile_ads to 5.2.0:
Bump google_mobile_ads to 5.2.0
diff --git a/dev/benchmarks/platform_views_layout/pubspec.yaml b/dev/benchmarks/platform_views_layout/pubspec.yaml
index b84db8e863..256bb5cdc9 100644
--- a/dev/benchmarks/platform_views_layout/pubspec.yaml+++ b/dev/benchmarks/platform_views_layout/pubspec.yaml@@ -9,7 +9,7 @@ dependencies:
sdk: flutter
flutter_driver:
sdk: flutter
- google_mobile_ads: 5.1.0+ google_mobile_ads: 5.2.0
# To change the version of the gallery assets, edit
# //packages/flutter_tools/lib/src/commands/update_packages.dart
# and run
Ah I was able to reproduce the same linker error by downgrading to Xcode 15.0, using the "good" parent commit 82ebb74, and applying a patch to bump google_mobile_ads to 5.2.0:
Patch to bump google_mobile_ads to 5.2.0...
diff --git a/dev/benchmarks/platform_views_layout/pubspec.yaml b/dev/benchmarks/platform_views_layout/pubspec.yaml
index b84db8e863..256bb5cdc9 100644
--- a/dev/benchmarks/platform_views_layout/pubspec.yaml+++ b/dev/benchmarks/platform_views_layout/pubspec.yaml@@ -9,7 +9,7 @@ dependencies:
sdk: flutter
flutter_driver:
sdk: flutter
- google_mobile_ads: 5.1.0+ google_mobile_ads: 5.2.0
# To change the version of the gallery assets, edit
# //packages/flutter_tools/lib/src/commands/update_packages.dart
# and run
Nothing jumps out as suspicious in the commits between 5.1.0 and 5.2.0, I suspect the issue may be in the closed-source Google-Mobile-Ads-SDK.
Edit dev/benchmarks/platform_views_layout/pubspec.yaml and bump google_mobile_ads dependency to 5.2.0
Navigate to the platform_views_layout benchmark app:
cd path/to/flutter
cd dev/benchmarks/platform_views_layout
Build the app:
flutter build ios
This fails.
Check that downgrading Google-Mobile-Ads-SDK to version 11.6.0 does not fix the build error...
Edit dev/benchmarks/platform_views_layout/ios/.symlinks/plugins/google_mobile_ads/ios/google_mobile_ads.podspec and downgrade Google-Mobile-Ads-SDK to 11.6.0
Delete dev/benchmarks/platform_views_layout/ios/Podfile.lock to make CocoaPods re-download dependencies
Build the app:
flutter build ios
This fails.
Check that downgrading Google-Mobile-Ads-SDK to version 11.5.0 does fix the build error...
Edit dev/benchmarks/platform_views_layout/ios/.symlinks/plugins/google_mobile_ads/ios/google_mobile_ads.podspec and downgrade Google-Mobile-Ads-SDK to 11.5.0
Delete dev/benchmarks/platform_views_layout/ios/Podfile.lock to make CocoaPods re-download dependencies
Build the app:
flutter build ios
This succeeds.
Patch to bump google_mobile_ads to 5.2.0...
diff --git a/dev/benchmarks/platform_views_layout/pubspec.yaml b/dev/benchmarks/platform_views_layout/pubspec.yaml
index b84db8e863..256bb5cdc9 100644
--- a/dev/benchmarks/platform_views_layout/pubspec.yaml+++ b/dev/benchmarks/platform_views_layout/pubspec.yaml@@ -9,7 +9,7 @@ dependencies:
sdk: flutter
flutter_driver:
sdk: flutter
- google_mobile_ads: 5.1.0+ google_mobile_ads: 5.2.0
# To change the version of the gallery assets, edit
# //packages/flutter_tools/lib/src/commands/update_packages.dart
# and run
Patch to downgrade Google-Mobile-Ads-SDK to 11.5.0...
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.
Activity
Reverts "Manual pub roll (#156549)" (#156607)
christopherfujino commentedon Oct 11, 2024
So reverting my PR fixed the tree, so the pub roll definitely broke this iOS build.
Looking at the diff from the PR: e6f7aa3c4b786d692a264b4477774676ac399c6298d717023c2c09565132d1bd
I am almost certain it was due to either:
Of which I suspect it's the former.
stuartmorgan-g commentedon Oct 11, 2024
It's definitely the former:
I'm not sure why it's not finding those frameworks though.
MarketplaceKitis 17.4+ so I thought it might be that, but that wouldn't explainswiftXPCandCoreAudioTypes. AlthoughCoreAudioTypesmay be noise here since none of the missing symbols are from there.loic-sharma commentedon Oct 14, 2024
I'll take a look
loic-sharma commentedon Oct 14, 2024
I seem to be getting a different linker error.
Steps:
The app appears to build fine. I don't see any
ld: warning: Could not find or use auto-linked...warnings in my build output.However, Xcode traps immediately upon launching the application with the following output:
The same command works on the parent commit, 82ebb74.
I can reproduce on the parent commit 82ebb74 by bumping
google_mobile_adsto 5.2.0:Bump google_mobile_ads to 5.2.0
Changes to google_mobile_ads SDK between 5.1.0 and 5.2.0 seem to be roughly this commit range: googleads/googleads-mobile-flutter@3eb6f4c...0330590
loic-sharma commentedon Oct 15, 2024
Ah I was able to reproduce the same linker error by downgrading to Xcode 15.0, using the "good" parent commit 82ebb74, and applying a patch to bump google_mobile_ads to 5.2.0:
Patch to bump google_mobile_ads to 5.2.0...
Nothing jumps out as suspicious in the commits between 5.1.0 and 5.2.0, I suspect the issue may be in the closed-source
Google-Mobile-Ads-SDK.christopherfujino commentedon Oct 15, 2024
Ahh, I didn't realize the ads SDK was closed source, but I also couldn't find it under https://github.com/googleads so that makes sense.
@LTPhantom, as the author of googleads/googleads-mobile-flutter#1182, do you have any insight into exactly which dependencies were changed upstream and how we can fix this build?
loic-sharma commentedon Oct 15, 2024
I was able to bisect this build failure to
Google-Mobile-Ads-SDKversion 11.6.0.Steps to bisect...
Setup your repro environment...
Switch to Xcode 15.0
Checkout "good" framework commit 82ebb74
Edit
dev/benchmarks/platform_views_layout/pubspec.yamland bumpgoogle_mobile_adsdependency to5.2.0Navigate to the
platform_views_layoutbenchmark app:Build the app:
This fails.
Check that downgrading
Google-Mobile-Ads-SDKto version 11.6.0 does not fix the build error...Edit
dev/benchmarks/platform_views_layout/ios/.symlinks/plugins/google_mobile_ads/ios/google_mobile_ads.podspecand downgradeGoogle-Mobile-Ads-SDKto11.6.0Delete
dev/benchmarks/platform_views_layout/ios/Podfile.lockto make CocoaPods re-download dependenciesBuild the app:
This fails.
Check that downgrading
Google-Mobile-Ads-SDKto version 11.5.0 does fix the build error...Edit
dev/benchmarks/platform_views_layout/ios/.symlinks/plugins/google_mobile_ads/ios/google_mobile_ads.podspecand downgradeGoogle-Mobile-Ads-SDKto11.5.0Delete
dev/benchmarks/platform_views_layout/ios/Podfile.lockto make CocoaPods re-download dependenciesBuild the app:
This succeeds.
Patch to bump google_mobile_ads to 5.2.0...
Patch to downgrade Google-Mobile-Ads-SDK to 11.5.0...
loic-sharma commentedon Oct 15, 2024
I was able to repro on a clean Flutter app. I filed a bug on the google_mobile_ads repo: googleads/googleads-mobile-flutter#1193
christopherfujino commentedon Oct 15, 2024
Now that we've filed a bug upstream, should we pin this package in flutter/flutter to unblock autorolling everything else?
loic-sharma commentedon Oct 15, 2024
@christopherfujino Good idea, I sent a PR here: #156911
Pin google_mobile_ads to 5.1.0 (#156911)
loic-sharma commentedon Oct 15, 2024
Closing this as the
google_mobile_adsdependency has been pinned. Unpinning this dependency once it's been fixed is tracked by: #156912(I'm assuming this is the correct process. Chris feel free to reopen if I got this wrong!)
christopherfujino commentedon Oct 15, 2024
looks good to me, thanks for investigating this!
github-actions commentedon Oct 30, 2024
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 -vand a minimal reproduction of the issue.