Skip to content

Commit a202ae7

Browse files
authored
Merge pull request #964 from ychin/hardened-runtime
Enable hardened runtime
2 parents ba77a78 + 76cb94b commit a202ae7

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

src/MacVim/MacVim.entitlements

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict/>
5+
</plist>

src/MacVim/MacVim.xcodeproj/project.pbxproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,7 @@
383383
90922ABC221D42F700F1E1F4 /* MMBackend.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MMBackend.h; sourceTree = "<group>"; };
384384
90922ABD221D42F700F1E1F4 /* gui_macvim.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = gui_macvim.m; sourceTree = "<group>"; };
385385
90922ABE221D42F700F1E1F4 /* MMBackend.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MMBackend.m; sourceTree = "<group>"; };
386+
90E2CE97235DCC550039C7AA /* MacVim.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = MacVim.entitlements; sourceTree = "<group>"; };
386387
/* End PBXFileReference section */
387388

388389
/* Begin PBXFrameworksBuildPhase section */
@@ -533,6 +534,7 @@
533534
29B97314FDCFA39411CA2CEA /* MacVim */ = {
534535
isa = PBXGroup;
535536
children = (
537+
90E2CE97235DCC550039C7AA /* MacVim.entitlements */,
536538
1D493D640C52482B00AB718C /* Executables */,
537539
080E96DDFE201D6D7F000001 /* MacVim Source */,
538540
29B97317FDCFA39411CA2CEA /* Resources */,
@@ -986,8 +988,10 @@
986988
C01FCF4B08A954540054247B /* Debug */ = {
987989
isa = XCBuildConfiguration;
988990
buildSettings = {
991+
CODE_SIGN_ENTITLEMENTS = MacVim.entitlements;
989992
COMBINE_HIDPI_IMAGES = YES;
990993
COPY_PHASE_STRIP = NO;
994+
ENABLE_HARDENED_RUNTIME = YES;
991995
FRAMEWORK_SEARCH_PATHS = (
992996
"$(inherited)",
993997
"$(FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1)",
@@ -1019,8 +1023,10 @@
10191023
C01FCF4C08A954540054247B /* Release */ = {
10201024
isa = XCBuildConfiguration;
10211025
buildSettings = {
1026+
CODE_SIGN_ENTITLEMENTS = MacVim.entitlements;
10221027
COMBINE_HIDPI_IMAGES = YES;
10231028
COPY_PHASE_STRIP = YES;
1029+
ENABLE_HARDENED_RUNTIME = YES;
10241030
FRAMEWORK_SEARCH_PATHS = (
10251031
"$(inherited)",
10261032
"$(FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1)",

0 commit comments

Comments
 (0)