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

Commit 015f2ea

Browse files
authored
Use the main bundle if the App bundle is not found (#18749)
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.
1 parent c99deb0 commit 015f2ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ - (NSString*)assetsPath {
4747
if (flutterAssetsName == nil) {
4848
flutterAssetsName = @"flutter_assets";
4949
}
50-
NSString* path = [_dartBundle pathForResource:flutterAssetsName ofType:@""];
50+
NSString* path = [assetBundle pathForResource:flutterAssetsName ofType:@""];
5151
if (!path) {
5252
NSLog(@"Failed to find path for \"%@\"", flutterAssetsName);
5353
}

0 commit comments

Comments
 (0)