From c183e854d76962aa879c9f42c1b9629ae48d5156 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Tue, 8 Nov 2022 13:44:31 +0100 Subject: [PATCH] Weakly link ReplayKit to ensure this library can be used on macOS 10.15 --- crates/live_kit_client/build.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/live_kit_client/build.rs b/crates/live_kit_client/build.rs index bceb4fb927da826920cab1af91b67a92325ea8a5..d9430736ad274cc1f010b18fb60165e9b06901fe 100644 --- a/crates/live_kit_client/build.rs +++ b/crates/live_kit_client/build.rs @@ -44,6 +44,9 @@ fn main() { // Register exported Objective-C selectors, protocols, etc when building example binaries. println!("cargo:rustc-link-arg=-Wl,-ObjC"); + + // Weakly link ReplayKit to ensure this library can be used on macOS 10.15+. + println!("cargo:rustc-link-arg=-Wl,-weak_framework ReplayKit"); } }