提交 6ef35837 编写于 作者: C Chinmay Garde

The app.flx is now present in the main application bundle. Look for it in there. (#2714)

上级 44429c06
......@@ -82,15 +82,7 @@ static NSURL* URLForSwitch(const char* name) {
#pragma mark - Convenience initializers
- (instancetype)initFromDefaultSourceForConfiguration {
NSString* bundlePath =
[[NSBundle mainBundle] pathForResource:@"FlutterApplication"
ofType:@"framework"
inDirectory:@"Frameworks"];
NSBundle* bundle = [NSBundle bundleWithPath:bundlePath];
// In both precompilation and non-precompilation cases, we need to bundle
// loaded since at least the FLX archive is present in it.
[bundle load];
NSBundle* bundle = [NSBundle mainBundle];
if (Dart_IsPrecompiledRuntime()) {
// Load from an AOTC snapshot.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册