fix ios linking

This commit is contained in:
John Smith
2022-03-13 16:41:14 -04:00
parent 2cdfa59bb6
commit 031c998cfc
5 changed files with 15 additions and 18 deletions

View File

@@ -26,7 +26,7 @@ Veilid Network Plugin
cargo_target_dir = File.join(File.dirname(JSON.parse(`cargo locate-project`)['root']), 'target')
s.xcconfig = {
'OTHER_LDFLAGS' => '-lveilid_flutter',
'OTHER_LDFLAGS' => "-Wl,-force_load,#{File.join(cargo_target_dir, 'ios_lib', 'libveilid_flutter.a')}",
"LIBRARY_SEARCH_PATHS" => File.join(cargo_target_dir, 'ios_lib')
}