From 0beb79258649f97767f7572659a81b588c3357ff Mon Sep 17 00:00:00 2001 From: Matt Holgate Date: Mon, 14 Jul 2014 15:38:39 +0100 Subject: Add the ability to hook a post-archive script into the build process. Used by the Testflight build. The post-archive step requires nastiness to pass the result of the script back to the caller via a temporary file. The reason for this is that a bug in Xcode means that failures from post-archive steps do not get propagated back to the user who called xcodebuild archive. Also, update the postbuild script to explicitly invoke bash (so we can avoid assuming /bin/sh is bash, and to avoid problems where executable permissions aren't set properly). --- platform/ios/MuPDF.xcodeproj/project.pbxproj | 2 +- .../xcshareddata/xcschemes/MuPDF.xcscheme | 20 +++++++++++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) (limited to 'platform/ios') diff --git a/platform/ios/MuPDF.xcodeproj/project.pbxproj b/platform/ios/MuPDF.xcodeproj/project.pbxproj index e2fc55bb..4a2322ec 100644 --- a/platform/ios/MuPDF.xcodeproj/project.pbxproj +++ b/platform/ios/MuPDF.xcodeproj/project.pbxproj @@ -446,7 +446,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "if [ \"$COMMAND_LINE_POSTBUILD_SCRIPT\" != \"\" ] ;\nthen\n exec $COMMAND_LINE_POSTBUILD_SCRIPT\nfi\n"; + shellScript = "if [ \"$COMMAND_LINE_POSTBUILD_SCRIPT\" != \"\" ] ;\nthen\n exec bash $COMMAND_LINE_POSTBUILD_SCRIPT\nfi\n"; }; /* End PBXShellScriptBuildPhase section */ diff --git a/platform/ios/MuPDF.xcodeproj/xcshareddata/xcschemes/MuPDF.xcscheme b/platform/ios/MuPDF.xcodeproj/xcshareddata/xcschemes/MuPDF.xcscheme index ddfd0395..2aa52d65 100644 --- a/platform/ios/MuPDF.xcodeproj/xcshareddata/xcschemes/MuPDF.xcscheme +++ b/platform/ios/MuPDF.xcodeproj/xcshareddata/xcschemes/MuPDF.xcscheme @@ -1,7 +1,7 @@ + version = "1.7"> @@ -82,5 +82,23 @@ + + + + + + + + + + -- cgit v1.2.3