OTA Distribution of iOS apps written in Swift

18 Jul 2014

OTA Distribution of iOS apps written in Swift

When Swift first became available in the XCode 6 Beta, I rushed to write a simple app and use TestFlight to distribute it. Unfortunately, installation always failed. Troubleshooting showed that it failed via wired installation too.

I searched for a workaround to this problem, which I found today. Apparently, you need to manually package and use the `embed` and `sign` flags.

xcrun
  -sdk iphoneos PackageApplication \
  -v “APP_NAME.app” \
  -o “PATH/APP_NAME.ipa” \
  –sign “SIGNING_IDENTITY” \
  –embed “PROVISIONING_PROFILE”

Looking for more content? Check out other posts with the same tags: