Xcodebuild command-line packaging, after the use of Xcodebuild compilation found something some temporary nature of things, still exist, search for some information, find a clean command, before packaging is to build the app file, packaging the app into an IPA file needs to write a script, The operation is relatively troublesome, originally Xcode brought the app into an IPA command xcrun, so the operation became so simple, the steps are as follows:
Understanding: Xcodebuild is responsible for packaging the program into an. App file
Xcrun is responsible for the. App (signed and) packaged as an. IPA file
First, clear the build record:
/usr/bin/xcodebuild-target TargetName Clean
Second, execute build:
/usr/bin/xcodebuild-target TargetName
such as: Xcodebuild-sdk iphonesimulator6.1
Best, package The app as an IPA:
/USR/BIN/XCRUN-SDK Iphoneos packageapplication-v/home/xxx.app-o/home/xxx.ipa
Explanation:-V is followed by the app file and its path, and after-O is the stored IPA file name and the location of the pre-storage
such as: Xcrun-sdk Iphoneos packageapplication-v build/release-iphonesimulator-o/users/mac_hy/desktop/svn/prometheus/ Zdprometheus/build/testguest.ipa
NOTE:-v/home/xxx.app This statement does not bring the last xxx.app here as long as it is passed into the specified folder. I tried for a long time to say that the file does not exist, has been very puzzled. Then I saw the example here. There's no value specified here.