From f8a80c6b38f71b7ef660ceadd8b885e7de8b743d Mon Sep 17 00:00:00 2001 From: Alex Zenla Date: Sun, 8 Sep 2024 21:25:45 -0400 Subject: [PATCH] Request more memory from the system on iPad --- Sources/Voxelotl/CMakeLists.txt | 4 +++- Sources/Voxelotl/MobileVoxelotl.entitlements | 12 ++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 Sources/Voxelotl/MobileVoxelotl.entitlements diff --git a/Sources/Voxelotl/CMakeLists.txt b/Sources/Voxelotl/CMakeLists.txt index 048a488..96e709a 100644 --- a/Sources/Voxelotl/CMakeLists.txt +++ b/Sources/Voxelotl/CMakeLists.txt @@ -94,9 +94,11 @@ target_compile_definitions(Voxelotl PRIVATE $<$:DEBUG>) if(VOXELOTL_MOBILE_ENABLED) set(VOXELOTL_APPICON "AppIconMobile") set(VOXELOTL_RPATH "@loader_path/Frameworks") + set(VOXELOTL_ENTITLEMENTS "${CMAKE_CURRENT_SOURCE_DIR}/MobileVoxelotl.entitlements") else() set(VOXELOTL_APPICON "AppIcon") set(VOXELOTL_RPATH "@loader_path/../Frameworks") + set(VOXELOTL_ENTITLEMENTS "${CMAKE_CURRENT_SOURCE_DIR}/Voxelotl.entitlements") endif() set_target_properties(Voxelotl PROPERTIES @@ -116,7 +118,7 @@ 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" + XCODE_ATTRIBUTE_CODE_SIGN_ENTITLEMENTS "${VOXELOTL_ENTITLEMENTS}" MACOSX_BUNDLE_COPYRIGHT "© 2024 Gay Pizza Specifications") if(VOXELOTL_MOBILE_ENABLED) diff --git a/Sources/Voxelotl/MobileVoxelotl.entitlements b/Sources/Voxelotl/MobileVoxelotl.entitlements new file mode 100644 index 0000000..f850259 --- /dev/null +++ b/Sources/Voxelotl/MobileVoxelotl.entitlements @@ -0,0 +1,12 @@ + + + + + com.apple.security.app-sandbox + + com.apple.security.cs.disable-library-validation + + com.apple.developer.kernel.increased-memory-limit + + +