From 5b35f82907c20f2526c2370b3b5ebab1207b4859 Mon Sep 17 00:00:00 2001 From: Alex Zenla Date: Sun, 4 Aug 2024 18:36:35 -0700 Subject: [PATCH] enable hardened runtime --- Sources/Voxelotl/CMakeLists.txt | 3 ++- Sources/Voxelotl/Voxelotl.entitlements | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 Sources/Voxelotl/Voxelotl.entitlements diff --git a/Sources/Voxelotl/CMakeLists.txt b/Sources/Voxelotl/CMakeLists.txt index 9356955..de36785 100644 --- a/Sources/Voxelotl/CMakeLists.txt +++ b/Sources/Voxelotl/CMakeLists.txt @@ -1,7 +1,7 @@ add_executable(Voxelotl MACOSX_BUNDLE main.swift) target_link_libraries(Voxelotl PRIVATE SDLSwift) set_target_properties(Voxelotl PROPERTIES - XCODE_ATTRIBUTE_ENABLE_HARDENED_RUNTIME NO + XCODE_ATTRIBUTE_ENABLE_HARDENED_RUNTIME YES XCODE_ATTRIBUTE_PRODUCT_BUNDLE_IDENTIFIER "gay.pizza.voxelotl" XCODE_EMBED_FRAMEWORKS "${SDL3}" XCODE_EMBED_FRAMEWORKS_REMOVE_HEADERS_ON_COPY YES @@ -15,4 +15,5 @@ set_target_properties(Voxelotl PROPERTIES XCODE_ATTRIBUTE_INSTALL_PATH "$(LOCAL_APPS_DIR)" XCODE_GENERATE_SCHEME ON XCODE_SCHEME_ENABLE_GPU_FRAME_CAPTURE_MODE "Metal" + XCODE_ATTRIBUTE_CODE_SIGN_ENTITLEMENTS "${CMAKE_CURRENT_SOURCE_DIR}/Voxelotl.entitlements" MACOSX_BUNDLE_COPYRIGHT "© 2024 Gay Pizza Specifications") diff --git a/Sources/Voxelotl/Voxelotl.entitlements b/Sources/Voxelotl/Voxelotl.entitlements new file mode 100644 index 0000000..123d12a --- /dev/null +++ b/Sources/Voxelotl/Voxelotl.entitlements @@ -0,0 +1,8 @@ + + + + + com.apple.security.cs.disable-library-validation + + +