From ba168e97e94988aacc70dcd4f0feb62380da4631 Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Wed, 11 May 2016 15:49:48 -0700 Subject: [PATCH] Look for the service dylib in the frameworks directory of the main bundle. (#2680) --- .../framework/Source/FlutterDynamicServiceLoader.mm | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/sky/shell/platform/ios/framework/Source/FlutterDynamicServiceLoader.mm b/sky/shell/platform/ios/framework/Source/FlutterDynamicServiceLoader.mm index c67097a14..a811e63a5 100644 --- a/sky/shell/platform/ios/framework/Source/FlutterDynamicServiceLoader.mm +++ b/sky/shell/platform/ios/framework/Source/FlutterDynamicServiceLoader.mm @@ -49,12 +49,11 @@ return; } - mojo::String dylib_path( - [[NSBundle bundleForClass:[FlutterDynamicServiceLoader class]] - pathForResource:_containerFramework - ofType:@"dylib" - inDirectory:@"Frameworks"] - .UTF8String); + mojo::String dylib_path([[NSBundle mainBundle] + pathForResource:_containerFramework + ofType:@"dylib" + inDirectory:@"Frameworks"] + .UTF8String); _definition = sky::services::DynamicServiceDefinition::Initialize(dylib_path); -- GitLab