We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4338849 commit 3b9937aCopy full SHA for 3b9937a
shell/platform/darwin/macos/framework/Source/FlutterDartProject.mm
@@ -27,6 +27,11 @@ - (instancetype)initWithPrecompiledDartBundle:(NSBundle*)bundle {
27
NSAssert(self, @"Super init cannot be nil");
28
29
_dartBundle = bundle ?: [NSBundle bundleWithIdentifier:kAppBundleIdentifier];
30
+ if (_dartBundle == nil) {
31
+ // The bundle isn't loaded and can't be found by bundle ID. Find it by path.
32
+ _dartBundle = [NSBundle bundleWithURL:[NSBundle.mainBundle.privateFrameworksURL
33
+ URLByAppendingPathComponent:@"App.framework"]];
34
+ }
35
_dartEntrypointArguments = [[NSProcessInfo processInfo] arguments];
36
// Remove the first element as it's the binary name
37
_dartEntrypointArguments = [_dartEntrypointArguments
0 commit comments