diff options
author | Dmitry Shevchenko <dmishe@google.com> | 2016-07-28 16:16:54 +0000 |
---|---|---|
committer | Damien Martin-Guillerez <dmarting@google.com> | 2016-07-29 10:09:50 +0000 |
commit | 80f635a1bcd86ab08c14d5af4b2f56185d4825f1 (patch) | |
tree | 33e4a6e2835eb3e4aef8be0afe796d9d07a71dcf /src/tools/xcode | |
parent | ee8b7aaff277b913d50f3083768564c1d7124c87 (diff) |
Roll forward of commit 05c0bd286b3802ad3d7faf48bc19e86929a9cf6d:
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-x | src/tools/xcode/swiftstdlibtoolwrapper/swiftstdlibtoolwrapper.sh | 5 |
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" "$@" |