diff --git a/build.rs b/build.rs index 6bf38a9..8ddcb52 100644 --- a/build.rs +++ b/build.rs @@ -57,7 +57,7 @@ fn build(sdk_path: Option<&str>, target: &str) { // Since iOS 10.0, macOS 10.12, visionOS 1.0, all the functionality in AudioUnit // moved to AudioToolbox, and the AudioUnit headers have been simple // wrappers ever since. - if target.contains("apple-ios") { + if target.contains("apple-ios") || target.contains("apple-visionos") { // On iOS, the AudioUnit framework does not have (and never had) an // actual dylib to link to, it is just a few header files. // The AudioToolbox framework contains the symbols instead.