diff options
author | Dmitry Shevchenko <dmishe@google.com> | 2016-07-27 19:17:43 +0000 |
---|---|---|
committer | Adam Michael <ajmichael@google.com> | 2016-07-28 18:36:29 -0400 |
commit | 05c0bd286b3802ad3d7faf48bc19e86929a9cf6d (patch) | |
tree | 72a6df19d30a7bcaf2758e208b91cd6e46a25f12 /src/tools/xcode | |
parent | b6b922cd9c62ef9a2ea2fcdfd07acfb76f2d0c95 (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=128614279
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..311b123443 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:-"Frameworks"}" +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" "$@" |