This script packages adding SwiftSupport folder with libswiftCore*.dylib in to ipa file. This is needed to deploy an app made with Swift into the AppStore
path/to/package_ipa.sh /path/to/ipafile
OSX Mavericks or Yosemite Xcode 6 Xcode command line tools
Create a temp folder
Unzip ipa file to temp folder
Create SwiftSupport folder inside temp folder
Copy swift libs from Payload/*app/framworks to SwiftSupport folder
Package ipa file from contains inside temp folder (we have Payload and SwiftSupport folders), and save to output directory