1. Traditional app packaging (no cocopods used)
Before packaging, select the certificate and configuration file.
Step1: Open terminal, CD into the project directory
Step2:xcodebuild Clean (if the BUiD file exists, delete all the original files produced by the build process)
Step3:xcodebuild-target test-configuration Release (compile, italic part needs to be changed to your own project name)
Once this is done, you will find one more build folder in your project directory, find the. app file, and use the next step.
STEP4:XCRUN-SDK Iphoneos packageapplication-v build/release-iphoneos/test.app-o/Users/apple/Desktop/test.ipa (packaged, Set the. app file path and the file path to be packaged.
The Ok,spa file is packed.
2. Cocopods after using the package
Step1: Open terminal, CD into the project directory
Step2:xcodebuild-workspace test.xcworkspace-scheme test-configuration Release (compile, test for own project name)
Step3:xcodebuild-workspace test.xcworkspace-scheme Test Archive-archivepath/users/apple/desktop/test.xcarchive (Generate. xcarchive file)
Step4:xcodebuild-exportarchive-exportformat Ipa-archivepath "/users/apple/desktop/test.xcarchive"-exportPath "/ Users/apple/desktop/test.ipa "-exportprovisioningprofile" Myinhouse "(packaged, I use inhouse certificate here)
It's so easy to pack an IPA.
IOS Xcodebuild packaged App