mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Load App.framework in macOS app (flutter/engine#23221)
This commit is contained in:
parent
06a21ddc1f
commit
4942e7faad
@ -32,6 +32,9 @@ static NSString* const kAppBundleIdentifier = @"io.flutter.flutter.app";
|
||||
_dartBundle = [NSBundle bundleWithURL:[NSBundle.mainBundle.privateFrameworksURL
|
||||
URLByAppendingPathComponent:@"App.framework"]];
|
||||
}
|
||||
if (!_dartBundle.isLoaded) {
|
||||
[_dartBundle load];
|
||||
}
|
||||
_dartEntrypointArguments = [[NSProcessInfo processInfo] arguments];
|
||||
// Remove the first element as it's the binary name
|
||||
_dartEntrypointArguments = [_dartEntrypointArguments
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user