iOS-The most complete App launch tutorial

App launch tutorial

Students who want to test on a real device before putting the app on the shelves, please check "iOS - the most complete real device testing tutorial", which includes how to let multiple computers put the app on the shelves and debug on the real device at the same time.

Detailed explanation of the use of P12 files

Note: You can also set the certificate in the sign of the Build Setting, but it is a bit troublesome. It is recommended to set the certificate in the General, which is more convenient, and you can also check the wrong place.

Xcode 8 certificate settings

Prepare

  • Shelf steps

1. Create an App ID

  1. Open the Apple Developer website and click "Account" to log in to the Member Center.
  2. Fill in the information to create an app ID

2. Create a certificate request file (CSR file)

CRS files are mainly used to bind your computer

  1. Click on LaunchPad and find Open Keychain Access in Others
  2. Click Keychain Access in the upper left corner of the computer – Certificate Assistant – Request a Certificate from a Certificate Authority
  3. The following interface appears, select to save to disk, click Continue
  4. Select Save to Desktop, Save
  5. click finish
  6. See the following file on the desktop, the certificate request file is complete

3. Create a release certificate (CER file)

  1. Find Certificates, click All, and then click the + sign in the upper right corner
  2. Click on App Store and Ad Hoc

In addition, we add a more convenient method to make certificates here.

IOS certificate making tutorial

Click the Apple Certificate button



 

Click to add


 

Enter certificate password, name

This password is not an account password, but a password to protect the certificate. It is the password of the p12 file. After this password is set, it cannot be found elsewhere. If you forget it, you can only delete the certificate and recreate it, so please remember the password. Also, for security reasons, the password should not be too simple.
The certificate name is a character you want to distinguish in the certificate list. You can easily identify it yourself. Try to be letters and numbers.


 

Select certificate type

 带distribution的是发布类型,带development的是开发类型。
 apple类型=ios+mac,所以开发时选择ios app development和apple development 类型都是可以的 


 

Select the bundle ID

Only some types of certificates need to select the bundle id, such as push certificates. Because most certificates are not associated with the app. Instead, the app is associated with the description file profile file.


 

Sync using appuploader service

If you want to download the certificate on other computers after making the certificate, or synchronize the certificate with your colleagues, you need to check Use the appuploader service to synchronize. Otherwise, you need to manually manage the transfer of p12 files between different computers, and once the download is created, it cannot be downloaded on other computers, and the file can only be copied manually. In general, it is recommended to use the appuploader service for synchronization.


 

Certificate Type Description

For IOS development, select apple development or ios app development type. For
ios release, select apple distribution or ios distribution (app store and ad hoc).
For development push certificate, select apple push notification service ssl (sandbox). For
release push certificate, select apple push notification service ssl (sandbox & production )

Other certificates are not very commonly used, you can Baidu various certificate instructions

The release certificate and the developer certificate need to be created separately, and the operation is performed twice. The developer certificate is used for real-device debugging, and the release certificate is used for submitting to the AppStore.
   3. Click Continue

  1. Click Continue
  2. Click choose File.. Select the created certificate request file: CertificateSigningRequest.certSigningRequest file, click Generate **
  3. Click Download to download the created distribution certificate (the file with cer suffix), then click Done, and the distribution certificate you created will be stored in the account.
  4. Double click to install. If it cannot be installed, you can directly drag the certificate file to the list of keychain access

Key point: Generally, it is enough for a developer account to create a release certificate. If you need to put the App on other computers in the future, you only need to create a p12 file in the keychain access and install the p12 file on other computers.

upload application

  1. Before the application is put on the shelves, you need to create an App Id (application identification) and related information describing the application, so that your application can be found in the review and application stores.
  2. Download the certificate file (cer suffix) matching the App Id and import it into Xcode. Make sure the Bundle Identifier and certificate file information in the General tab in Xcode is correct.
  3. Select Build > Build and Archive (or press the shortcut key Command + B) in Xcode to generate the binary file of the App.
  4. Upload the binary to the App Store using iTunes or Application Loader. Take care to select the correct certificate file and information describing the application.

Guess you like

Origin blog.csdn.net/weixin_72651014/article/details/130886501