From 1cf292affd4551f3bb1ab21bf073c35cd7fdaf33 Mon Sep 17 00:00:00 2001 From: Quanlong He Date: Tue, 25 Aug 2015 18:14:16 +0800 Subject: [PATCH] Fix: Cannot find `CardIOIccVersion.h` --- icc.xcodeproj/project.pbxproj | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/icc.xcodeproj/project.pbxproj b/icc.xcodeproj/project.pbxproj index 9476c5f7..74e45418 100644 --- a/icc.xcodeproj/project.pbxproj +++ b/icc.xcodeproj/project.pbxproj @@ -1951,6 +1951,7 @@ 92263D6C1B83ACBB003FE678 /* Frameworks */, 92263D6D1B83ACBB003FE678 /* Headers */, 92263D6E1B83ACBB003FE678 /* Resources */, + 929AD77D1B8C771200F6D18E /* Get version from git tag */, ); buildRules = ( ); @@ -2109,6 +2110,20 @@ shellPath = /bin/bash; shellScript = "export PATH=/usr/local/bin:$PATH\n\nif [ -f .baler_envx ]; then\n source .baler_env 2 > /dev/null\nelif which bale > /dev/null; then\n echo \"Using default bale\"\nelse\n echo \"baler is missing, so skipping the baler step\"\n exit 0;\nfi\n\necho \"Baling bundle with `which bale`\"\nbale assets/ Classes/ --overwrite-delay 0 -z -c CardIOBundle || (echo 'Failed to generate bundle via baler!' ; exit 1)"; }; + 929AD77D1B8C771200F6D18E /* Get version from git tag */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Get version from git tag"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "if [ -z \"$ICC_VERSION\" ]\nthen\nICC_VERSION=`git describe --match=iOS_[0-9]*\\.[0-9]* --tags --always --dirty | sed \"s/iOS_//\" | sed \"s/-.*//\"`\nfi\necho \"Using version: $ICC_VERSION\"\n\nsed s/icc-version-undefined/$ICC_VERSION/g Classes/CardIOIccVersion.h"; + }; /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */