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

Commit d0c5047

Browse files
authored
Load App.framework in macOS app (#23221)
1 parent 87d98c7 commit d0c5047

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

shell/platform/darwin/macos/framework/Source/FlutterDartProject.mm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ - (instancetype)initWithPrecompiledDartBundle:(NSBundle*)bundle {
3232
_dartBundle = [NSBundle bundleWithURL:[NSBundle.mainBundle.privateFrameworksURL
3333
URLByAppendingPathComponent:@"App.framework"]];
3434
}
35+
if (!_dartBundle.isLoaded) {
36+
[_dartBundle load];
37+
}
3538
_dartEntrypointArguments = [[NSProcessInfo processInfo] arguments];
3639
// Remove the first element as it's the binary name
3740
_dartEntrypointArguments = [_dartEntrypointArguments

0 commit comments

Comments
 (0)