aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/tools/xcode
diff options
context:
space:
mode:
authorGravatar Dmitry Shevchenko <dmishe@google.com>2016-07-28 16:16:54 +0000
committerGravatar Damien Martin-Guillerez <dmarting@google.com>2016-07-29 10:09:50 +0000
commit80f635a1bcd86ab08c14d5af4b2f56185d4825f1 (patch)
tree33e4a6e2835eb3e4aef8be0afe796d9d07a71dcf /src/tools/xcode
parentee8b7aaff277b913d50f3083768564c1d7124c87 (diff)
Include SwiftSupport directory into the IPA when an app contains Swift. * To pass App Store validation, an app that contains Swift code must have a SwiftSupport directory at the root of the IPA. -- MOS_MIGRATED_REVID=128706028
Diffstat (limited to 'src/tools/xcode')
-rwxr-xr-xsrc/tools/xcode/swiftstdlibtoolwrapper/swiftstdlibtoolwrapper.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tools/xcode/swiftstdlibtoolwrapper/swiftstdlibtoolwrapper.sh b/src/tools/xcode/swiftstdlibtoolwrapper/swiftstdlibtoolwrapper.sh
index 11879ccde0..7197cdc32e 100755
--- a/src/tools/xcode/swiftstdlibtoolwrapper/swiftstdlibtoolwrapper.sh
+++ b/src/tools/xcode/swiftstdlibtoolwrapper/swiftstdlibtoolwrapper.sh
@@ -26,11 +26,12 @@ REALPATH="${MY_LOCATION}/realpath"
WRAPPER="${MY_LOCATION}/xcrunwrapper.sh"
OUTZIP=$("${REALPATH}" "$1")
-shift 1
+PATH_INSIDE_ZIP="$2"
+shift 2
TEMPDIR=$(mktemp -d "${TMPDIR:-/tmp}/swiftstdlibtoolZippingOutput.XXXXXX")
trap "rm -rf \"$TEMPDIR\"" EXIT
-FULLPATH="$TEMPDIR/Frameworks"
+FULLPATH="$TEMPDIR/$PATH_INSIDE_ZIP"
$WRAPPER swift-stdlib-tool --copy --verbose --destination "$FULLPATH" "$@"