Xcode 5.x version Export IPA does not require a developer account, and Xcode6 after export IPA must ask to select the developer team, cannot bypass, but we use the Xcodebuild command line can ignore this limit
Environment:
Mac OSX 10.10 and Xcode 6.1
First CD to the directory where your xcodeproj is located
The first step is to clean up the project
Xcodebuild Clean-project Ron.xcodeproj-alltargets
Step two, archive compile
Xcodebuild-project ron.xcodeproj-scheme ron_taiwan-destination Generic/platform=ios archive-archivepath bin/ Ron.xcarchive
If this step is stuck in, it may be because the scheme file does not exist, as follows,
In Xcode-"manage schemes, put the scheme shared for the project you need to export, tick share, OK, continue trying
(Refer to this blog http://blog.reohou.com/how-to-export-ipa-from-archive-using-xcodebuild/)
Step three, export the IPA file
I'm exporting a adhoc package.
Xcodebuild-exportarchive-archivepath bin/ron.xcarchive-exportpath Bin/ron_taiwan-exportformat IPA- Exportprovisioningprofile ' Abcd_adhoc '
This is the process I have personally tried, after completion, you can find an IPA under the directory bin
Xcodebuild Export IPA method