From 57a91872440c3ab494eacf2cf652d67e493cf701 Mon Sep 17 00:00:00 2001 From: Andy Weiss Date: Tue, 2 Jun 2020 13:15:27 -0700 Subject: [PATCH] Use the main bundle if the App bundle is not found It looks like half the code in this function was updated to use the main bundle but this one line was still only using the _dartBundle. I am pretty sure that is a mistake and instead we want to use the mainBundle as a backup both to find the plist and to find the assets. --- .../darwin/macos/framework/Source/FlutterDartProject.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/platform/darwin/macos/framework/Source/FlutterDartProject.mm b/shell/platform/darwin/macos/framework/Source/FlutterDartProject.mm index 5fc590a4bcb1a..1226d392b20bf 100644 --- a/shell/platform/darwin/macos/framework/Source/FlutterDartProject.mm +++ b/shell/platform/darwin/macos/framework/Source/FlutterDartProject.mm @@ -47,7 +47,7 @@ - (NSString*)assetsPath { if (flutterAssetsName == nil) { flutterAssetsName = @"flutter_assets"; } - NSString* path = [_dartBundle pathForResource:flutterAssetsName ofType:@""]; + NSString* path = [assetBundle pathForResource:flutterAssetsName ofType:@""]; if (!path) { NSLog(@"Failed to find path for \"%@\"", flutterAssetsName); }