diff --git a/lib/client/native_client.dart b/lib/client/native_client.dart index 5a2c77c..c3ee22e 100644 --- a/lib/client/native_client.dart +++ b/lib/client/native_client.dart @@ -140,7 +140,8 @@ class Config { } class NativeClient { - //late final DynamicLibrary _wormholeWilliamLib; + // ignore: unused_field + late final DynamicLibrary _wormholeWilliamLib; late final DynamicLibrary _asyncCallbackLib; late final Config config; @@ -150,6 +151,8 @@ class NativeClient { if (Platform.isIOS) { _asyncCallbackLib = DynamicLibrary.executable(); } else { + // Necessary to load library for macOS to work + _wormholeWilliamLib = DynamicLibrary.open(libName("wormhole_william")); _asyncCallbackLib = DynamicLibrary.open(libName("bindings")); } diff --git a/macos/dart_wormhole_william.podspec b/macos/dart_wormhole_william.podspec index 3a91989..c5f364e 100644 --- a/macos/dart_wormhole_william.podspec +++ b/macos/dart_wormhole_william.podspec @@ -7,7 +7,7 @@ Pod::Spec.new do |s| s.version = '0.0.1' s.summary = 'A new flutter plugin project.' s.prepare_command = <<-CMD - mkdir build + mkdir -p build cd build cmake --trace ../ make