Article address.
1. Required statements (can be executed directly on the command line)
xcodebuild-configuration Release
go to the root folder of your project and execute the above statement to start using release mode to build the project file automatically.
Note: The file must have a certificate added.
mkdir-p ipa/payload
Cp-r./release-iphoneos/product_name.app./ipa/payload
CD IPA
Zip-r $FILE _name *
Enter the folder where the generated app file is located and execute the above statement to package the app file as an IPA file.
Note: The app file can be directly imported into itunes, but without icon, just put the icon in the./ipa folder and package it together.
app file default build path (modifiable)
Xcode3: Project root directory /build/debug-iphoneos/product _name
Xcode4:./user/user_name/library/developer/xcode/deriveddata/product_name-random_string/build/ Products/debug-iphoneos/product _name
icon Requirements:
Not much more than 500*500 .
Format is jpg
Named itunesartwork
Cannot have suffix
2. script notation (mac/linux)
Script Format
#!/bin/sh
The blue statement above.
Exit 0
Script Creation method
Open Terminal
Vim file_name.sh
Press "I" To enter edit mode
Input script content (can be pasted)
Press "ESC" to exit edit mode
Press "ZZ" (uppercase) to save and exit
About permissions
Use ls-l to view the permissions for files and folders in the current directory.
Change the permissions here to 777 chmod 777 file_name
Then rename it to. IPA
MV Xx.zip Xx.ipa
For automated iOS engineering, generate apps and IPA files