Skip to content

Commit 80deb7b

Browse files
committed
Remove ENABLE_HARDENED_RUNTIME from the Debug configuration
As we shouldn't expect a random contributor to have a sign-ready Apple Developer account, and building with the Hardened Runtime enables requires signing, disable it on the Debug configuration (which is the default, anything made using `xcodebuild` will use Release.
1 parent d504aee commit 80deb7b

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

‎GitX.xcodeproj/project.pbxproj‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1835,12 +1835,10 @@
18351835
/* Begin XCBuildConfiguration section */
18361836
26FC0A850875C7B200E6366F /* Debug */ = {
18371837
isa = XCBuildConfiguration;
1838-
baseConfigurationReference = 2DE9B60529ABEB450097873A /* GitX.xcconfig */;
18391838
buildSettings = {
18401839
ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-gitx";
18411840
CODE_SIGN_ENTITLEMENTS = GitX.entitlements;
18421841
COMBINE_HIDPI_IMAGES = YES;
1843-
ENABLE_HARDENED_RUNTIME = YES;
18441842
FRAMEWORK_SEARCH_PATHS = "\"$(PROJECT_DIR)\"";
18451843
GCC_DYNAMIC_NO_PIC = NO;
18461844
GCC_PRECOMPILE_PREFIX_HEADER = YES;
@@ -1859,7 +1857,6 @@
18591857
};
18601858
26FC0A860875C7B200E6366F /* Release */ = {
18611859
isa = XCBuildConfiguration;
1862-
baseConfigurationReference = 2DE9B60529ABEB450097873A /* GitX.xcconfig */;
18631860
buildSettings = {
18641861
ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-gitx";
18651862
CODE_SIGN_ENTITLEMENTS = GitX.entitlements;
@@ -1884,6 +1881,7 @@
18841881
};
18851882
26FC0A890875C7B200E6366F /* Debug */ = {
18861883
isa = XCBuildConfiguration;
1884+
baseConfigurationReference = 2DE9B60529ABEB450097873A /* GitX.xcconfig */;
18871885
buildSettings = {
18881886
ALWAYS_SEARCH_USER_PATHS = NO;
18891887
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
@@ -1936,6 +1934,7 @@
19361934
};
19371935
26FC0A8A0875C7B200E6366F /* Release */ = {
19381936
isa = XCBuildConfiguration;
1937+
baseConfigurationReference = 2DE9B60529ABEB450097873A /* GitX.xcconfig */;
19391938
buildSettings = {
19401939
ALWAYS_SEARCH_USER_PATHS = NO;
19411940
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
@@ -2001,7 +2000,6 @@
20012000
buildSettings = {
20022001
CODE_SIGN_ENTITLEMENTS = gitx_askpasswd.entitlements;
20032002
CODE_SIGN_IDENTITY = "-";
2004-
ENABLE_HARDENED_RUNTIME = YES;
20052003
INSTALL_PATH = /usr/local/bin;
20062004
PRODUCT_NAME = gitx_askpasswd;
20072005
SKIP_INSTALL = YES;
@@ -2040,7 +2038,6 @@
20402038
CODE_SIGN_ENTITLEMENTS = "cli tool.entitlements";
20412039
CODE_SIGN_IDENTITY = "-";
20422040
CREATE_INFOPLIST_SECTION_IN_BINARY = YES;
2043-
ENABLE_HARDENED_RUNTIME = YES;
20442041
GCC_PRECOMPILE_PREFIX_HEADER = YES;
20452042
GCC_PREFIX_HEADER = Resources/GitX_Prefix.pch;
20462043
INFOPLIST_FILE = "Resources/Info-gitx.plist";

‎README.markdown‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ a config file called `Dev.xcconfig` at the project root like this:
3232
```
3333
DEVELOPMENT_TEAM = YOUR_TEAM_ID
3434
CODE_SIGN_IDENTITY = YOUR_CERT_NAME
35+
ENABLE_HARDENED_RUNTIME = YES
3536
```
3637

3738
Replace `YOUR_TEAM_ID` with your development team ID and `YOUR_CERT_NAME` with the name of your certificate.

0 commit comments

Comments
 (0)