Last active
April 21, 2021 16:53
-
-
Save itrunks/94348b686ad951c1f7b121e7488cba64 to your computer and use it in GitHub Desktop.
Invalid Swift Support - The SwiftSupport folder is missing. Rebuild your app using the current public (GM) version of Xcode and resubmit it.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#file has saved in Applications location. | |
# *** folder has created in Applications location (Shift+Command+A) or Go->Applications | |
cd /*** | |
APP="input_ipa_path.ipa" | |
IPA="output.ipa" | |
TEMP_IPA_BUILT="***" | |
unzip ${APP} | |
APP="Payload/midacc.app" | |
echo "+ Packaging ${APP} into ${IPA}" | |
if [ -f "${IPA}" ]; | |
then | |
/bin/rm "${IPA}" | |
fi | |
if [ -d "${TEMP_IPA_BUILT}" ]; | |
then | |
rm -rf "${TEMP_IPA_BUILT}" | |
fi | |
echo "+ Preparing folder tree for IPA" | |
mkdir -p "${TEMP_IPA_BUILT}/Payload" | |
cp -Rp "${APP}" "${TEMP_IPA_BUILT}/Payload" | |
echo "+ Adding SWIFT support (if necessary)" | |
if [ -d "${APP}/Frameworks" ]; | |
then | |
mkdir -p "${TEMP_IPA_BUILT}/SwiftSupport" | |
for SWIFT_LIB in $(ls -1 ${APP}/Frameworks); do | |
echo "Copying ${SWIFT_LIB}" | |
cp "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.0/iphoneos/${SWIFT_LIB}" "${TEMP_IPA_BUILT}/SwiftSupport" | |
done | |
fi | |
echo "+ zip --symlinks --verbose --recurse-paths ${IPA} ." | |
cd "${TEMP_IPA_BUILT}" | |
zip --symlinks --verbose --recurse-paths "${IPA}" . | |
cd /*** | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment