1. Apply for a developer account
2 apply for app ID
Https://developer.apple.com/ios/manage/bundles/index.action
Description: San Zhang
Bundle identifier (app id suffix): CN. A. appname
3. Apply for CSR
Key string access-certificate assistant-certificate issued by the Certificate Authority
Enter the email address and user name when registering the Development Account, and store the CSR file to the disk.
4. apply to publish a certificate
IOS provisioning portal-certificates-distribution-import CSR file-download-open-display in key string access
5 apply for distribution provisioning
IOS provisioning portal-provisioning-distribution-add new-submit-download-open-automatically associate
6. Add an app to iTunes connect and fill in relevant information.
7. Add the entitlements. plist file in the code.
Content:
<? XML version = "1.0" encoding = "UTF-8"?>
<! Doctype plist public "-// Apple // DTD plist en" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<Plist version = "1.0">
<Dict>
<Key> application-identifier </key>
<String> z3vjf32ukj.cn. A. appname </string>
<Key> Get-task-Allow </key>
<False/>
</Dict>
</Plist>
8. Modify the plist file under resource
Bundle identifier: CN. A. appname
9 configure xcode
Add a distribution configuration item in project-get info-configurations.
Set build option-configuration to distribution-Modify codesigning identify and any iPhone OS device to Distribution Certificate. Targeted Device Family Is iPhone.
Set-get info-in target as above
10 clean, build and archive.
Note: The file directory level should not be too deep. Control the file name length.
11 open xcode-organizer-archived applications-select the program to compile, validate-submit