diff --git a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterDartProject.mm b/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterDartProject.mm index b1b50ef002..22d39950d9 100644 --- a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterDartProject.mm +++ b/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterDartProject.mm @@ -96,7 +96,11 @@ static blink::Settings DefaultSettingsForProcess(NSBundle* bundle = nil) { // Checks to see if the flutter assets directory is already present. if (settings.assets_path.size() == 0) { NSString* assetsName = [FlutterDartProject flutterAssetsName:bundle]; - NSString* assetsPath = [mainBundle pathForResource:assetsName ofType:@""]; + NSString* assetsPath = [bundle pathForResource:assetsName ofType:@""]; + + if (assetsPath.length == 0) { + assetsPath = [mainBundle pathForResource:assetsName ofType:@""]; + } if (assetsPath.length == 0) { NSLog(@"Failed to find assets path for \"%@\"", assetsName);