Make actool failure non-fatal in build.rs — allows building without full Xcode

This commit is contained in:
Will Anderson
2026-10-04 00:01:53 +00:00
committed by capy-ai-staging[bot]
parent dd8ab5cb20
commit c31703a8c4
+12 -7
View File
@@ -68,16 +68,21 @@ fn main() {
match output { match output {
Ok(output) => { Ok(output) => {
if !output.status.success() { if !output.status.success() {
eprintln!("actool stderr: {}", String::from_utf8_lossy(&output.stderr)); println!(
eprintln!("actool stdout: {}", String::from_utf8_lossy(&output.stdout)); "cargo:warning=actool failed (requires full Xcode, not just CLT) — \
panic!("actool failed to compile icon"); stub files will be used. stderr: {}",
} String::from_utf8_lossy(&output.stderr).trim()
);
} else {
println!("Successfully compiled icon to {}", gen_dir); println!("Successfully compiled icon to {}", gen_dir);
} }
}
Err(e) => { Err(e) => {
eprintln!("Failed to execute xcrun actool: {}", e); println!(
eprintln!("Make sure you have Xcode Command Line Tools installed"); "cargo:warning=xcrun actool not available ({e}) — \
panic!("Icon compilation failed"); install Xcode from the App Store for Liquid Glass icons. \
Stub files will be used for dev builds."
);
} }
} }