diff --git a/frb_rust/Cargo.toml b/frb_rust/Cargo.toml index 6cc938c08c..7b3bbc748b 100644 --- a/frb_rust/Cargo.toml +++ b/frb_rust/Cargo.toml @@ -49,7 +49,7 @@ web-sys = { version = "0.3.58", features = [ [target.'cfg(target_os = "android")'.dependencies] android_logger = { version = "0.13" , optional = true } -[target.'cfg(target_os = "ios")'.dependencies] +[target.'cfg(any(target_os = "ios", target_os = "macos"))'.dependencies] oslog = { version = "0.1.0" , optional = true } [build-dependencies] diff --git a/frb_rust/src/misc/user_utils.rs b/frb_rust/src/misc/user_utils.rs index 454882e538..a31611a150 100644 --- a/frb_rust/src/misc/user_utils.rs +++ b/frb_rust/src/misc/user_utils.rs @@ -28,7 +28,7 @@ fn setup_log_to_console() { android_logger::Config::default().with_max_level(log::LevelFilter::Trace), ); - #[cfg(target_os = "ios")] + #[cfg(any(target_os = "ios", target_os = "macos"))] let _ = oslog::OsLogger::new("frb_user") .level_filter(log::LevelFilter::Trace) .init();