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

Commit 46ac6c5

Browse files
author
Chris Yang
committed
try fix
1 parent ee31bf1 commit 46ac6c5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

shell/platform/darwin/common/framework/Source/FlutterNSBundleUtils.mm

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@
7171
// Use the raw path solution so that asset path can be returned from unloaded bundles.
7272
// See https://github.com/flutter/engine/pull/46073
7373
NSString* assetsPath = [bundle pathForResource:flutterAssetsPath ofType:nil];
74-
if (assetsPath.length == 0) {
75-
// In app extension, using full relative path (kDefaultAssetPath)
76-
// returns nil when the app bundle is not loaded. Try to use
77-
// the sub folder name, which can successfully return a valid path.
78-
assetsPath = [bundle pathForResource:@"flutter_assets" ofType:nil];
79-
}
74+
// if (assetsPath.length == 0) {
75+
// // In app extension, using full relative path (kDefaultAssetPath)
76+
// // returns nil when the app bundle is not loaded. Try to use
77+
// // the sub folder name, which can successfully return a valid path.
78+
// assetsPath = [bundle pathForResource:@"flutter_assets" ofType:nil];
79+
// }
8080
return assetsPath;
8181
}

0 commit comments

Comments
 (0)