Xcodebuild package command, xcodebuild package
1. Set the project to manual signature
2. Add in plist:
? ? ProvisioningProfiles? Dictionary
? ? ? ? $ BuildleID? ? String? Profile name
? ? Method? ? ? ? ? String? $ Method
? ? Where: $ buildleID is app Bundle Identifier
? ? ? ? $ Method includes four types: app-store, ad-hoc, enterprise, and development.
3. execute commands
Xcodebuild archive-project $ {OUTPUT_NAME }. xcodeproj-scheme $ {OUTPUT_NAME}-configuration Release CODE_SIGN_IDENTITY = "$ CodeSign" PROVISIONING_PROFILE = "$ ProvisionProfile"-archivePath archive/$ {OUTPUT_NAME }. xcarchive
Xcodebuild-exportArchive-archivePath archive/$ {OUTPUT_NAME}. xcarchive-exportPath $ {BUILD_DIST}-exportOptionsPlist $ {OUTPUT_NAME}/Info. plist
Note: $ {OUTPUT_NAME} project name
? ? $ {BUILD_DIST }? Export ipa path
? ? $ CodeSign? Signature Certificate Name, for example, iPhone Distribution: xxx
? ? $ ProvisionProfile profile name, uuid format, for example: f12345678-0000-2222-3333-123456789012