1 Linking with `kind=framework` is only supported when targeting macOS,
2 as frameworks are specific to that operating system.
4 Erroneous code example:
6 ```ignore (should-compile_fail-but-cannot-doctest-conditionally-without-macos)
7 #[link(name = "FooCoreServices", kind = "framework")] extern {}
8 // OS used to compile is Linux for example
11 To solve this error you can use conditional compilation:
14 #[cfg_attr(target="macos", link(name = "FooCoreServices", kind = "framework"))]
19 https://doc.rust-lang.org/reference/attributes.html#conditional-compilation