From 9577f1a46ff76501e497991840e31eefde43b0ba Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 3 Apr 2021 19:27:06 +0200 Subject: [PATCH] (OSX non-Metal build) Set disable execute page protection --- pkg/apple/RetroArch.xcodeproj/project.pbxproj | 12 ++++++++++++ pkg/apple/RetroArchCg.entitlements | 10 ++++++++++ 2 files changed, 22 insertions(+) create mode 100644 pkg/apple/RetroArchCg.entitlements diff --git a/pkg/apple/RetroArch.xcodeproj/project.pbxproj b/pkg/apple/RetroArch.xcodeproj/project.pbxproj index d01f7ee4c5..9c26dfcf74 100644 --- a/pkg/apple/RetroArch.xcodeproj/project.pbxproj +++ b/pkg/apple/RetroArch.xcodeproj/project.pbxproj @@ -94,6 +94,8 @@ 8D1107320486CEB800E47090 /* RetroArch.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = RetroArch.app; sourceTree = BUILT_PRODUCTS_DIR; }; 9254B2F825F5A94300A1E0DA /* OpenGL_GitLabCI.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = OpenGL_GitLabCI.xcconfig; sourceTree = ""; }; 9254B33325FA72ED00A1E0DA /* assets.zip */ = {isa = PBXFileReference; lastKnownFileType = archive.zip; name = assets.zip; path = OSX/assets.zip; sourceTree = ""; }; + D47B69E92618DCB2005F7A3C /* RetroArchCg.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = RetroArchCg.entitlements; sourceTree = ""; }; + D47B69EA2618DCB7005F7A3C /* RetroArch.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = RetroArch.entitlements; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -168,6 +170,8 @@ 29B97314FDCFA39411CA2CEA /* RetroArch */ = { isa = PBXGroup; children = ( + D47B69EA2618DCB7005F7A3C /* RetroArch.entitlements */, + D47B69E92618DCB2005F7A3C /* RetroArchCg.entitlements */, 9254B2F825F5A94300A1E0DA /* OpenGL_GitLabCI.xcconfig */, 840222FA1A889EA2009AB261 /* Core */, 080E96DDFE201D6D7F000001 /* Classes */, @@ -368,11 +372,13 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + CODE_SIGN_ENTITLEMENTS = RetroArchCg.entitlements; CODE_SIGN_IDENTITY = "Developer ID Application"; CODE_SIGN_STYLE = Manual; COMBINE_HIDPI_IMAGES = YES; COPY_PHASE_STRIP = NO; DEVELOPMENT_TEAM = UK699V5ZS8; + ENABLE_HARDENED_RUNTIME = YES; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "$(LOCAL_LIBRARY_DIR)/Frameworks", @@ -410,11 +416,13 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + CODE_SIGN_ENTITLEMENTS = RetroArchCg.entitlements; CODE_SIGN_IDENTITY = "Developer ID Application"; CODE_SIGN_STYLE = Manual; COMBINE_HIDPI_IMAGES = YES; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; DEVELOPMENT_TEAM = UK699V5ZS8; + ENABLE_HARDENED_RUNTIME = YES; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "$(LOCAL_LIBRARY_DIR)/Frameworks", @@ -451,11 +459,13 @@ buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; ARCHS = x86_64; + CODE_SIGN_ENTITLEMENTS = RetroArch.entitlements; CODE_SIGN_IDENTITY = "Developer ID Application"; CODE_SIGN_STYLE = Manual; COMBINE_HIDPI_IMAGES = YES; COPY_PHASE_STRIP = NO; DEVELOPMENT_TEAM = UK699V5ZS8; + ENABLE_HARDENED_RUNTIME = YES; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "$(LOCAL_LIBRARY_DIR)/Frameworks", @@ -490,11 +500,13 @@ buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; ARCHS = x86_64; + CODE_SIGN_ENTITLEMENTS = RetroArch.entitlements; CODE_SIGN_IDENTITY = "Developer ID Application"; CODE_SIGN_STYLE = Manual; COMBINE_HIDPI_IMAGES = YES; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; DEVELOPMENT_TEAM = UK699V5ZS8; + ENABLE_HARDENED_RUNTIME = YES; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "$(LOCAL_LIBRARY_DIR)/Frameworks", diff --git a/pkg/apple/RetroArchCg.entitlements b/pkg/apple/RetroArchCg.entitlements new file mode 100644 index 0000000000..4917f3c2fc --- /dev/null +++ b/pkg/apple/RetroArchCg.entitlements @@ -0,0 +1,10 @@ + + + + + com.apple.security.cs.disable-executable-page-protection + + com.apple.security.cs.disable-library-validation + + +