Look for the service dylib in the frameworks directory of the main bundle. (#2680)

This commit is contained in:
Chinmay Garde 2016-05-11 15:49:48 -07:00
parent befe39324e
commit ba168e97e9

View File

@ -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);