summary history branches tags files
commit:dea925018fd63a2fa5fd8dea047dface8c5ef127
author:Trevor Bentley
committer:Trevor Bentley
date:Mon Jun 24 20:55:44 2019 +0200
parents:10476b9f5e48d1a4ecd23424aac1d171f0433524
Add another private framework location
diff --git a/build.rs b/build.rs
line changes: +3/-1
index d82f7dc..425f938
--- a/build.rs
+++ b/build.rs
@@ -13,9 +13,11 @@ fn add_xcode_private_framework_path() {
         format!("{}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/PrivateFrameworks/",
                 xcode_dir),
         "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/PrivateFrameworks/DFRFoundation.framework/".into(),
+        "/System/Library/PrivateFrameworks/".into(),
     ];
     let framework_dir = private_framework_dirs.iter().filter(|dir| {
-        std::path::Path::new(dir).is_dir()
+        let fwork = format!("{}/DFRFoundation.framework", dir);
+        std::path::Path::new(&fwork).is_dir()
     }).next().expect("XCode PrivateFramework directory not found.");
 
     println!("XCode PrivateFramework dir: {}", framework_dir);