Skip to content

Commit

Permalink
Enable hardened runtime for Detox Instruments
Browse files Browse the repository at this point in the history
Resign Sparkle stuff to make it compliant.
  • Loading branch information
LeoNatan committed Nov 8, 2018
1 parent 62ff52f commit 81ffbf3
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions DetoxInstruments/DetoxInstruments.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1629,6 +1629,7 @@
39EBDFB61ED36D45005D8AB1 /* Resources */,
398D6E771EE03E9B00AA9C11 /* Embed Frameworks */,
39A829541F43780100A5FE3D /* Embed Profiler Framework */,
397AC318219456A6009E62BB /* Sign Sparkle with Hardened Runtime */,
39487CB71F435EFA0063E66D /* Copy Shared Support Items */,
393E1802207EEE88002E6136 /* Embed App Extensions */,
);
Expand Down Expand Up @@ -1660,6 +1661,9 @@
CreatedOnToolsVersion = 8.3.2;
ProvisioningStyle = Manual;
SystemCapabilities = {
com.apple.HardenedRuntime = {
enabled = 1;
};
com.apple.Sandbox = {
enabled = 0;
};
Expand Down Expand Up @@ -1887,6 +1891,24 @@
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
397AC318219456A6009E62BB /* Sign Sparkle with Hardened Runtime */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
);
name = "Sign Sparkle with Hardened Runtime";
outputFileListPaths = (
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "LOCATION=\"${BUILT_PRODUCTS_DIR}\"/\"${FRAMEWORKS_FOLDER_PATH}\"\n\n# By default, use the configured code signing identity for the project/target\nIDENTITY=\"${CODE_SIGN_IDENTITY}\"\nif [ \"$IDENTITY\" == \"\" ]\nthen\n# If a code signing identity is not specified, use ad hoc signing\nIDENTITY=\"-\"\nfi\ncodesign --verbose --force --deep -o runtime --sign \"$IDENTITY\" \"$LOCATION/Sparkle.framework/Versions/A/Resources/AutoUpdate.app\"\ncodesign --verbose --force -o runtime --sign \"$IDENTITY\" \"$LOCATION/Sparkle.framework/Versions/A\"\n";
};
398922FC1F3F2EA600129537 /* Update Build Numbers */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
Expand All @@ -1904,15 +1926,15 @@
};
39A829541F43780100A5FE3D /* Embed Profiler Framework */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 8;
buildActionMask = 12;
files = (
);
inputPaths = (
);
name = "Embed Profiler Framework";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 1;
runOnlyForDeploymentPostprocessing = 0;
shellPath = "/bin/bash -e";
shellScript = "set -e\n\nrm -fr /tmp/DTXProfiler.dst\nrm -fr /tmp/DTXProfilerShim.dst\nrm -fr ${SRCROOT}/../Profiler/build/Release_External-iphoneos\nrm -fr ${SRCROOT}/../Profiler/build/Release_External-iphonesimulator\nrm -fr ${SRCROOT}/../Profiler/build/Release_External-universal\nrm -fr ${SRCROOT}/../ProfilerShim/build\n\npushd .\ncd ${SRCROOT}/../Profiler\nxcodebuild -project DTXProfiler.xcodeproj -configuration Release_External -target DTXProfilerFramework build\nmkdir -p \"${TARGET_BUILD_DIR}\"/\"${SHARED_SUPPORT_FOLDER_PATH}\"/ProfilerFramework/\ncp -fr /tmp/DTXProfiler.dst/Library/Frameworks/DTXProfiler.framework \"${TARGET_BUILD_DIR}\"/\"${SHARED_SUPPORT_FOLDER_PATH}\"/ProfilerFramework/\npopd\n\npushd .\ncd ${SRCROOT}/../ProfilerShim\nxcodebuild -project DTXProfilerShim.xcodeproj -configuration Release -target DTXProfilerShimFramework build\nmkdir -p \"${TARGET_BUILD_DIR}\"/\"${SHARED_SUPPORT_FOLDER_PATH}\"/ShimFramework/\ncp -fr /tmp/DTXProfilerShim.dst/DTXProfilerShim.framework \"${TARGET_BUILD_DIR}\"/\"${SHARED_SUPPORT_FOLDER_PATH}\"/ShimFramework/\npopd\n";
showEnvVarsInLog = 0;
Expand Down Expand Up @@ -2263,6 +2285,7 @@
DEVELOPMENT_TEAM = S3GLW74Y8N;
DSTROOT = /;
DTXSRCROOT = "$(SRCROOT)";
ENABLE_HARDENED_RUNTIME = YES;
GCC_PREFIX_HEADER = DetoxInstruments/PrefixHeader.pch;
GCC_TREAT_WARNINGS_AS_ERRORS = YES;
GCC_WARN_UNUSED_FUNCTION = NO;
Expand Down Expand Up @@ -2290,6 +2313,7 @@
DEVELOPMENT_TEAM = S3GLW74Y8N;
DSTROOT = /;
DTXSRCROOT = "---";
ENABLE_HARDENED_RUNTIME = YES;
GCC_PREFIX_HEADER = DetoxInstruments/PrefixHeader.pch;
GCC_TREAT_WARNINGS_AS_ERRORS = YES;
INFOPLIST_FILE = DetoxInstruments/Info.plist;
Expand Down

0 comments on commit 81ffbf3

Please sign in to comment.