mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Look for the service dylib in the frameworks directory of the main bundle. (#2680)
This commit is contained in:
parent
befe39324e
commit
ba168e97e9
@ -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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user