Skip to content

Commit

Permalink
Only run Plist version script when archiving.
Browse files Browse the repository at this point in the history
Before it was running during the analyze step as well, when the
installation paths were not set properly, thus breaking the build.
  • Loading branch information
Shadowfiend committed Oct 27, 2013
1 parent ba001ad commit b50c9c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vico.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1916,17 +1916,17 @@
};
9AAF73F81360A73600D75E1E /* Set version numbers in Info.plist */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
buildActionMask = 8;
files = (
);
inputPaths = (
);
name = "Set version numbers in Info.plist";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
runOnlyForDeploymentPostprocessing = 1;
shellPath = /bin/sh;
shellScript = "set -x\nREPO_VERSION=$(MACOSX_DEPLOYMENT_TARGET=\"\" git rev-parse --short HEAD)\necho `pwd`\n/usr/libexec/PlistBuddy -c \"Set :CFBundleVersion $REPO_VERSION\" \"${INSTALL_DIR}/${INFOPLIST_PATH}\"\nif test \"$CONFIGURATION\" == \"Release\"; then\n SHORT_VERSION=$(cat $SOURCE_ROOT/version.h)\nelse\n SHORT_VERSION=r$REPO_VERSION\nfi\n/usr/libexec/PlistBuddy -c \"Set :CFBundleShortVersionString $SHORT_VERSION\" \"${INSTALL_DIR}/${INFOPLIST_PATH}\"\n";
shellScript = "set -x\nREPO_VERSION=$(MACOSX_DEPLOYMENT_TARGET=\"\" git rev-parse --short HEAD)\nset -x FULL_INFOPLIST_PATH=\"${INSTALL_DIR}/${INFOPLIST_PATH}\"\n\n/usr/libexec/PlistBuddy -c \"Set :CFBundleVersion $REPO_VERSION\" \"${FULL_INFOPLIST_PATH}\"\nif test \"$CONFIGURATION\" == \"Release\"; then\n SHORT_VERSION=$(cat $SOURCE_ROOT/version.h)\nelse\n SHORT_VERSION=r$REPO_VERSION\nfi\n/usr/libexec/PlistBuddy -c \"Set :CFBundleShortVersionString $SHORT_VERSION\" \"${FULL_INFOPLIST_PATH}\"\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */
Expand Down

0 comments on commit b50c9c8

Please sign in to comment.