diff --git a/alvr/common/Cargo.toml b/alvr/common/Cargo.toml index f1f1df8f57..3423dfe1dd 100644 --- a/alvr/common/Cargo.toml +++ b/alvr/common/Cargo.toml @@ -19,5 +19,5 @@ serde = { version = "1", features = ["derive"] } settings-schema = { git = "https://github.com/alvr-org/settings-schema-rs", rev = "676185f" } # settings-schema = { path = "../../../../settings-schema-rs/settings-schema" } -[target.'cfg(not(target_os = "android"))'.dependencies] +[target.'cfg(all(not(target_os = "android"), not(target_os = "ios")))'.dependencies] rfd = "0.14" diff --git a/alvr/common/src/logging.rs b/alvr/common/src/logging.rs index f833e3f9b4..1ca163a2fb 100644 --- a/alvr/common/src/logging.rs +++ b/alvr/common/src/logging.rs @@ -193,7 +193,7 @@ pub fn set_panic_hook() { log::error!("ALVR panicked: {err_str}"); - #[cfg(not(target_os = "android"))] + #[cfg(all(not(target_os = "android"), not(target_os = "ios")))] std::thread::spawn({ let panic_str = panic_info.to_string(); move || { @@ -210,7 +210,7 @@ pub fn set_panic_hook() { pub fn show_w(w: W) { log::warn!("{w}"); - #[cfg(not(target_os = "android"))] + #[cfg(all(not(target_os = "android"), not(target_os = "ios")))] std::thread::spawn(move || { rfd::MessageDialog::new() .set_title("ALVR warning") @@ -228,7 +228,7 @@ pub fn show_warn(res: Result) -> Option fn show_e_block(e: E, blocking: bool) { log::error!("{e}"); - #[cfg(not(target_os = "android"))] + #[cfg(all(not(target_os = "android"), not(target_os = "ios")))] { // Store the last error shown in a message box. Do not open a new message box if the content // of the error has not changed