Debugging IOS apps on the real machine: Understanding certificates, Identifiers & Profiles

Source: Internet
Author: User

No matching provisioning profiles found.

No matching code signing identity found.

Your account already have a valid IOS distribution certificate.

Since Apple only allows apps that it has licensed to run on IPhone and other devices, developers need to do some configuration when they want to test the app with a real machine, but if they don't, there will be a lot of these annoying bugs that can't be successfully debugged or packaged on your phone.

To test your App with a real machine, there are 4 concepts involved:
Certificates (voucher) means that you are a legitimate developer, that is, you registered for the developer account, the voucher contains your name, email, voucher type and other information.
Identifiers (Identity) refers to the unique identity of the App.
Devices (device) is a mobile device, each phone has a different UDID, just like our ID number.
Profiles (config) is a configuration file that certificates (credentials), Identifiers (identity), and devices (devices) are integrated together.

Understanding the meaning of these 4 concepts, we need to do the following 4 preparations in the developer Center:
1. Create a Certificates (voucher).
Depending on the purpose, the voucher is divided into 2 categories:
Development (development) is the credential that is used when debugging on a test phone during the development phase.
Distribution (release) The voucher used when the APP is published, after development is complete.
  After the creation is complete, download it for backup.

2. Create a Identifiers (identity).
The general format is com.domainname.appname.

3. Register Devices (device).
Get the UDID of the phone and add it to the Devices list.

4. Generate Profiles (config).
Generate a profile as needed (development or distribution, which App, which phone).
  After the creation is complete, download it for backup.

Install the Certificates (voucher) and Profiles (config) 2 files downloaded in steps 1th and 4 above.
Certificates (credentials) are installed in Keychain Access.
The Profiles (config) will be installed in Xcode.

Because development and distribution use different certificates (vouchers) and Profiles (config), the above steps you need to operate two times. Finally get 4 files:

In the Build settings-code signing-provisioning profile option, depending on the requirements, select the Profiles (configuration) file that corresponds to the desired installation.

All the work is done, you can debug your phone in Xcode, or pack the app.

If you want to run debugging on the second computer for the same project, you only need to install Certificates (voucher) and Profiles (config) 2 files to the new computer.
Certificates (voucher) can be exported in Keychain Access,
Profiles (config) can be downloaded again at the Developer Center.

Debugging IOS apps on the real machine: Understanding certificates, Identifiers & Profiles

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.