We will go through three phases from writing to publishing an application: Running and debugging on the simulator, running debugging on the device, and publishing and compiling. To prevent illegal devices and non-developers from debugging and publishing applications, Apple, use the provisioning profiles to control the debugging and release compilation phases on the device. The configuration profiles are divided into two types: Development Configuration profiles and release configuration profiles.
1. Create a release configuration Profile
The creation process is to first log on to the configuration portal of the IOS Development Center (IOS provisioning portal), and enter through the navigation menu provisioning on the left. The distribution label is used to manage the release Configuration Overview file.
Click new profile To Go To The create page. The distribution method has two options: App Store and ad hoc. Ad hoc generates an application test version associated with the device for testing. Therefore, it is also a test. App Store is created for publishing.
Select App Store in distribution method, input hello in profile name, and select the created hello in app id. After entering the information, click Submit to submit the form. We can see the added hello, and refresh some pages to see that hello is active. We can click the Download button to download the configuration overview file to the local device.
2. Release and compile
Find the downloaded Configuration Overview file named "Hello. mobileprovision" and double-click it to go to the xcode device management tool to open the file. You can manage the configuration overview file here.
Then, use xcode to open the project or workspace to be compiled, select targets for the project, and select build settings → code signing identity, which is code signing identity ), select "hello" as the code signature of release.
Select Edit scheme in the toolbar, open the edit scheme dialog box, select the "Duplicate Scheme" button in the small left corner, and copy a new scheme of helloworld 2.
After the replication is complete, select helloworld2 in the select drop-down box in the upper left corner, run helloworld. app in the list on the left, select the info tag on the right, and release in the build configuration drop-down box. Operation Order No. ① ~ 4.
After the configuration is complete, select IOS deviec in scheme helloworld 2. Select scheme, choose product> building for> running, and compile the program.
Pay attention to the compilation result. If errors or warnings exist, they must be resolved. Ignoring warnings often leads to publishing failure. Therefore, we can only release the application after all these problems are solved.
After the release and compilation are successful, open the display log navigation panel. We will see that the build helloworld 2 Scheme just executed has been successful.