diff --git a/membrane/tests/integration_tests.rs b/membrane/tests/integration_tests.rs index 86d4dd5..cbd8fd3 100644 --- a/membrane/tests/integration_tests.rs +++ b/membrane/tests/integration_tests.rs @@ -180,7 +180,13 @@ import '../locations/locations.dart' show GDPR, Location; build_lib(&path.to_path_buf(), &mut vec![]); - Membrane::new_from_cdylib(&path.join("libexample.so")) + let lib = if cfg!(target_os = "macos") { + "libexample.dylib" + } else { + "libexample.so" + }; + + Membrane::new_from_cdylib(&path.join(lib)) .timeout(200) .package_destination_dir(path) .using_lib("libexample")