IOS Real-Computer debugging and publishing apps 2

Source: Internet
Author: User

Reference website: http://my.oschina.net/u/1245365/blog/196420

You have already developed a certificate to skip the first step directly

First step: Apply for "Development certificate"

Enter the Apple developer $99 Account:

Selection: Certificates, Identifiers & Profiles

See "Certificates, Identifiers, Profiles" for Certificates,identifiers,profiles's introduction

Choice: Certificates

Select: Development, click "+"

Can create a certificate, detailed steps please refer to the " request Certificate", here is not duplicated

Generally speaking, we develop iOS app, must have two certificates, "Development certificate", "Publish Certificate", after the two certificates are generated on the computer, do not need to add a certificate every time, so the steps to add a certificate are not re-narrated here.

If you have not applied for the certificate on the developer website, you can choose to export the P12 file, please refer to the "Export P12" file

Step Two: Add App IDs

Select "Identifiers" for "App IDs" and click "+"

The following interface appears:

    • App ID Description is a description of an app ID, which is a name that can be taken anywhere

    • APP ID Prefix Apple has helped us fill out, do not need us to fill in, it can be seen that it is a team ID

Next, choose App ID Suffix

APP ID Suffix has two options:

    • Explicit App ID: As the name implies, here is an explicit app ID to fill

      What do you mean? It can be explained that the bundle Identifier (bundle ID) We do when we do the project is used to mark our app. Our app ID is also used to mark our app. What is the connection between the two? The Explicit app ID is for us to identify a unique Bundle ID that is used to mark our app so that it has a fixed identity. It can be found that when the submission is applied to Apple, if we do not write the Explicit app ID at the beginning, Apple will automatically help us generate a Bundle ID that is the same as when we posted it to our app ID.

Fill in the Explicit App ID in the format: com.company.appName

    • Wildcard App ID: As the name implies, here is a wildcard app ID. This means that we just need to fill out an app ID that can be tested in all apps.

Fill in the Wildcard App ID in the format: com.company.*

When applying for real machine debugging, it is not for an application to debug, but for all applications to debug, must be able to adapt to each app, so we choose Wildcard app ID.

Com.company.* Company generally writes the name of the firm and can write as needed

Can be found that the choice of Explicit app ID will be more than the Wildcard app ID several service options can be selected, but we are the real machine debugging, so does not matter, will be able to select the hook, choose "Continue" just fine.

When you see the following screen, click "Submit" to generate the app ID.

Step three: Apply for equipment

, click "+", a $99 account can only apply for 100 devices.

Name yourself a device, udid approximately equal to the ID of the device, and can be viewed in Xcode

View Udid

Open Xcode and select "Organizer" for "Windows":

Select the device to see "identifier", this is our device's UDID, copy it, can be filled in the displayed UDID.

When your machine is used for development for the first time, you can see that the light shown is "gray" and you can click on "Use for developer" as the developer. After clicking on "Use for developer", you can see that your light has turned yellow.

If a mobile phone is a development machine (a phone can install multiple development profiles) or jailbreak mobile phone, then it just inserted into the green light. But the green light does not mean that it can be used, you must install the appropriate description file. is a development machine that does not have the appropriate description file installed.

After filling out name and Udid, click Continue to see the following screen, click "Register" can be registered on the Apple.

Fourth Step: Request a description file

Click "+"

Select "IOS App Developer", then "Continue"

Select the App ID that we just created, and then click "Continue" when you've chosen.

Here to choose a development certificate, there are two points to note:

    • This certificate is the development certificate that we have just built on this machine (current computer) and the Apple Developer website "Development Certificate"

    • If it is not just generated, this certificate must exist in the local Mac keychain (the certificate with the key is still invalid without the key)

If you do not want to regenerate the certificate, with the certificate generated by others, you can export the P12 file from someone else's computer, you can refer to: How to export the P12 file

After selecting the certificate, click "Continue"

Select the device, the device can select all devices, or you can select the device you need on demand:

Here is a name for our description file, this name is visible in later Xcode, so you can take a well-recognized name. After the name is taken, select "Generate" to generate the profile.

Once the profile is generated, select "Download" and double-click to install it (can be viewed in Xcode after installation)

    • After the installation is successful, the mobile phone that was not used as the development machine will turn green (formerly the development machine and jailbreak mobile phone has been green, but do not re-apply for certificate-compliant real-machine debugging is still not true machine debugging)

    • Click "Provisioning Profiles" to see "Valid profile" is the successful installation of the meaning.

If the installation is not successful, it is generally a certificate or a description of the problem, to see if the certificate is generated from their own machine, profile configuration information (whether and your native presence of the key to match the certificate, you add the device contains the device you now choose to debug), etc. The first warning is that there is no certificate that matches the description file

After the configuration is not green, consider the issue:

    • The device version is higher than the version that Xcode can support, such as XCode4.6.3, the highest supported version is not iOS6.1, if your device system is greater than or equal to iOS7, you need to update to XCODE5, again such as: XCODE5 does not support ios7.1, if you want to develop ios7.1 , the XCODE5 must be upgraded to xcode5.1 or later;

For example:

In real-time debugging, do not forget to set these two, or debug failed:

This must be filled in: Before you write the contents of the wildcard App ID. The name of the app

Set these two before you click Run.

IOS Real-Computer debugging and publishing apps 2

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.