This script adds the necessary SwiftSupport to a signed IPA package. This is a simplification of https://github.com/bq/ipa-packager.
Shell
Latest commit 09c69ee Jun 22, 2016 @jamesbar2 committed on GitHub Updated README
Permalink
Failed to load latest commit information.
README.md Updated README Jun 22, 2016
auto_package_ipa.sh Removed Console Outputs for User Friendly Output Jun 22, 2016

README.md

auto-ipa-packager

This script adds the necessary SwiftSupport to a signed IPA package. This is in direct response from a rejection from the app store citing "Invalid Swift Support - The SwiftSupport folder is missing. Rebuild your app using the current public (GM) version of Xcode and resubmit it."

If you run your IPA package through this script, it should remedy this issue in a one step process.

Usage

Simply export your signed IPA from Xcode or Xamarin Studio, and then simply run the script.

    sh auto_package_ipa.sh /path/to/MyApp.ipa

The script will output to MyApp.ipa and the original saved as MyApp-original.ipa.

The output should be similar to:

    Unzipping the IPA archive...
    Backed up original IPA to /path/to/MyApp-original.ipa
    Copying Swift Support Requirements...
    Zipping updated IPA archive...
    Completed! Saved as /path/to/MyApp.ipa

Debugging

If you need to debug this script, remove all of the >/dev/null or 2>/dev/null from the commands in the file.

Credit

This is a simplification of @bq ipa-packager which you can find here: https://github.com/bq/ipa-packager. Many thanks!

Requirements

  • XCode 6+
  • XCode Command Line Tools
  • macOS Mavericks or Higher