From 4e69c6a203892151b0b4e10e9ccee107fdccfa38 Mon Sep 17 00:00:00 2001 From: SoftFever Date: Sun, 19 Jul 2026 23:12:34 +0800 Subject: [PATCH] Fix macOS Xcode-generator build broken by bundled Python signing Xcode's CodeSign phase rejects the bundled Python runtime's dotted dirs under Contents/MacOS. Disable it for the Xcode generator so the linker ad-hoc signs local dev builds; CI (Ninja) and the notarized bundle are unaffected. --- src/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a50bc22750..b157a595ec 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -309,6 +309,13 @@ else () set(MACOSX_BUNDLE_BUNDLE_NAME "OrcaSlicer") set(MACOSX_BUNDLE_SHORT_VERSION_STRING ${SoftFever_VERSION}) set(MACOSX_BUNDLE_COPYRIGHT "Copyright(C) 2022-2024 Li Jiang All Rights Reserved") + if (XCODE) + # Xcode's CodeSign phase fails on the bundled Python runtime's dotted + # dirs (python3.12) under Contents/MacOS. Skip it for local dev builds + # and let the linker ad-hoc sign; the shipped bundle is signed by the + # Ninja/CI packaging path (build_release_macos.sh, build_orca.yml). + set_target_properties(OrcaSlicer PROPERTIES XCODE_ATTRIBUTE_CODE_SIGNING_ALLOWED NO) + endif() endif() add_custom_command(TARGET OrcaSlicer POST_BUILD COMMAND ln -sfn "${SLIC3R_RESOURCES_DIR}" "${BIN_RESOURCES_DIR}"