Just upgraded to Xcode 6.1 today, and guess what: Now I\'m having trouble submitting builds using the TestFlight desktop app. Here\'s the error I\'m getting while the app st
The answer by Tim Gostony no longer works since the release of Xcode 7. Now the App Store submission process fails when resource rules are present. The solution is to clear your Code Signing Resource Rules Path and replace xcrun with xcodebuild tool:
xcodebuild -exportArchive -archivePath [path to archive] -exportPath [path to output directory] -exportOptionsPlist [path to options.plist file]
The simplest Options.plist for exporting ad-hoc distribution ipa files looks like this:
iCloudContainerEnvironment
Production
teamID
[YOUR TEAM ID]
method
ad-hoc
There are other options available for this plist file regarding bitcode, app thinning, etc. That's why I think xcodebuild tool is the right tool for exporting ipa files for iOS 9 and above.
More details about options plist are available with xcodebuild -help command.