Skip to content

Commit 4ca9d22

Browse files
committed
build: Link Foundation framework in build.rs
Link Foundation instead of CoreServices to provide the missing Objective-C symbols; many ObjC APIs live in Foundation
1 parent 74ee90f commit 4ca9d22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ fn main() {
2323
.compile("notify");
2424

2525
// Link the macOS frameworks that provide the missing symbols:
26-
println!("cargo:rustc-link-lib=framework=CoreServices"); // for LSCopyApplicationURLsForBundleIdentifier (LaunchServices)
26+
println!("cargo:rustc-link-lib=framework=Foundation"); // safe to include; many ObjC APIs live here
2727

2828
println!("cargo:rerun-if-env-changed={}", DEPLOYMENT_TARGET_VAR);
2929
println!("cargo:rerun-if-changed=build.rs");

0 commit comments

Comments
 (0)