Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@jmagman
Copy link
Member

@jmagman jmagman commented Dec 21, 2020

Description

flutter/flutter#71764 stopped explicitly linking the App.framework into the macOS app, which means the bundle isn't loaded (no longer LC_LOAD_DYLIB).

In release, this is causing native_library_->ResolveSymbol(symbol_name) to return nullptr.

mapping_ = native_library_->ResolveSymbol(symbol_name);

There are too many places that expect the App.framework to be loaded in the process. Just load the bundle to mimic the behavior pre-flutter/flutter#71764.

Related Issues

Follow up to #22979
Fixes flutter/flutter#72585

Tests

Add a flutter run --release macOS test to the framework: flutter/flutter#72743
Add a macos scenario app: flutter/flutter#72744

@jmagman jmagman self-assigned this Dec 21, 2020
@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat.

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@google-cla google-cla bot added the cla: yes label Dec 21, 2020
@jmagman jmagman requested a review from gaaclarke December 21, 2020 20:36
Copy link
Contributor

@dnfield dnfield left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RSLGTM

@jmagman
Copy link
Member Author

jmagman commented Dec 21, 2020

Updated to use isLoaded getter instead.

@property (readonly, getter=isLoaded) BOOL loaded;

@jmagman jmagman merged commit d0c5047 into flutter:master Dec 21, 2020
@jmagman jmagman deleted the load-bundle branch December 21, 2020 21:52
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 22, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 22, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 22, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 22, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 22, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 22, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 22, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 22, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 22, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

macOS running in release mode crashes on head

2 participants