iphone 申请证书

来源:互联网 发布:手机电视直播大全软件 编辑:程序博客网 时间:2024/06/05 04:08

Step 1: Login to the iPhone Provisioning Portal

Login to your Apple Developer account by navigating to http://developer.apple.com/iphone. Once there, navigate to the iPhone Provisioning Portal.

iPhone Provisioning Profile

Step 2: Install the WWDR Intermediate Certificate

The first thing we will need to do is download the WWDR Intermediate Certificate. Once in the portal, click on “Certificate” in the sidebar and you will be presented with a link to download the “WWDR Intermediate Certificate.”

Apple iPhone WWDR Certificate

Download the file and double-click to add it into the Keychain Access program on Mac OS.

Step 3: Create a Development Certificate

Next, we will need to download a certificate for development. To get the development certificate, we will need to generate a “Certificate Signing Request” from within Keychain Access.

Open the Keychain Access program on your mac. It can be found under Applications > Utilities > Keychain Access, or just by searching for “Keychain Access” with Spotlight.

Open Utilities Keychain Access App

Once open, go into the “Keychain Access” drop-down menu in your menubar and select “Certificate Assistant” and then “Request Certificate from A Certificate Authority.”

Request Certificate Authority

A window will popup. Fill the window in with your information, but leave “CA Email Address” blank, and select “Save To Disk” from the radio buttons. Save it to a location that is easy to find, like your desktop, because you will need the file shortly to generate the certificate.

Self Sign iPhone Development Certificate

Head back into the “Certificate” section of the Provisioning Portal and make sure you have selected the “Development” tab. From there, press “New Certificate” and upload the request you made on your desktop. You may need to refresh the page in a few moments to change the status from “Pending” to available for download. If you are working as a team member on a larger project, you may need your manager to approve the certificate request.

Hopefully all went well, and you were able to create a certificate. Go ahead and download the certificate, then install it by double clicking the file or, if Keychain Access is open, drag the file over the Keychain Access icon in the dock.

Step 4: Create an App ID

Next we need an App ID. Return to the Provisioning Portal and select the “App IDs” option from the menu on the left.

There are two distinct App ID types to choose from.

One approach is to create an App ID for a single application. This will allow you to enable advanced features like In-App Purchases, Game Center integration, or Push Notifications. To do this approach, structure the bundle identifier as follows:

  1. com.companyname.AppName  

If you would like to create an App ID for a single application, fill out the screen as displayed:

Apps on iPhone Create App ID

The second approach is called a wildcard bundle ID. This approach will allow you to create an App ID that can be used for multiple applications that you would like to share a keychain between.

To take this approach, fill out the form as displayed:

Install Apps On iPhone: iPhone App COM Name

Step 5: Find & Add Your Device UDID

Select the “Devices” link from the left menu in the “Provisioning Portal.”

In-order to add a device, you will need the device’s unique device identifier, also known as the UDID.

To get the UDID, plug the device into iTunes and select your device in the list. In the device’s “Summary” tab, there will be a description called “Serial Number” next to the picture of the device. Click once on the serial number and it should change to “Identifier”, or your UDID. Copy your UDID to the clipboard. (Command + C on Mac/Control + C on Windows)

Apps on iPhone Get App UDID

Another approach is to simply download one of the many free “UDID” applications in the App Store, and e-mail or copy the UDID from that app.

After you have your UDID, click on add device from within the devices tab in the Provisioning Portal. Enter a name under “Device Name” and enter the UDID under “Device ID”.

Apps on iPhone Add Device UDID

Step 6: Create & Download Provisioning Profile

Now that you have added your device and made an App ID, we can generate a provisioning profile.

Select the “Provisioning” tab from the left menu. Make sure that the “Development” tab is selected, and click the “New Profile” button.

I named my new Profile “Developer”. Under certificate choose your development certificate, and under App ID, choose the ID we made in step 2. Under devices, select all the devices you have that you are going to use for development.

Press “Submit” to be brought back to the overview page for provisioning. Once on this page, if the status is set to “pending” you will need to refresh your browser before being able to select “Download.” If you are a team member on another’s account, you may need to wait for them to approve your certificate creation request. Download the certificate to continue.

Apps on iPhone Provisioning Profile Select

Step 7: Install Provisioning Profile

In this step, we will install the profile to your device and to Xcode.

Make sure your device is connected, and from your downloads folder drag the Provisioning Profile onto the Xcode icon.

Apps on iPhone Download Image

Then go into Xcode and open the organizer by going to Window > Organizer. There you should see your devices name on the left. Click on your device that has a green dot next to it and make sure it is allowed to be used for development, by clicking on “Use for Development” if it presents itself.

In the device summary info you should see a table called “Provisioning”. Drag and drop the provision profile from your downloads folder into that as well.

Step 8: Configure Build Settings

In this step, you will build your application to run on your device.

In your Xcode project, open the info.plist file from the “Groups & Files” pane. Fill in the “Bundle Identifier” value with the one created earlier and associated with the App ID.

iPhone Bundle Identifier in PLIST

Finally, select Project > Edit Project Settings from the Xcode menu bar or just right click or control click on the project file as shown below:

Project Info in Xcode

A new window should open. Select the “build” tab on this window.

Scroll down to the “Code Signing” section and select the correct provisioning profile identity from the drop down menu associated with the iOS device.

Step 9: Run On Device

Before you build and run, be sure to select “Device” from Project > Set Active SDK in the Xcode menu bar. Also be sure that you have selected the correct device from Project > Set Active Executable. Finally, be sure that your iOS device is turned on, connected to your computer, that it is recognized by iTunes, and that your screen is not locked.

You should now be ready to build, install, and run your first application on your iOS hardware! Click the “Build & Run” icon, and Xcode should take care of the rest.

Hopefully everything worked! Leave comments, questions, and feedback below.

原创粉丝点击
热门问题 老师的惩罚 人脸识别 我在镇武司摸鱼那些年 重生之率土为王 我在大康的咸鱼生活 盘龙之生命进化 天生仙种 凡人之先天五行 春回大明朝 姑娘不必设防,我是瞎子 小新家的房子被炸了房贷怎么办 怀孕8个月感冒鼻窦炎头疼怎么办 买的全身镜下面的框子坏了怎么办 单位上司姐姐每天要接我上班怎么办 企业微信公众号中的文章边框怎么办 怎么办我在数学答题卡上画了分割线 游泳的时候泳裙飘起来怎么办 两岁宝宝误服了酵素梅怎么办 人被困在山洞里没有氧气怎么办? 一个人太爱你可你不爱他怎么办 牙齿还没掉又长了新牙齿怎么办 两岁宝宝牙齿发黑烂牙怎么办 怀孕八个月被小孩压到肚子了怎么办 在花场上班客人约我出去玩怎么办 小天才电话手表开不了机怎么办 黑色笔芯弄在白色衣服上怎么办 su文件打开是意外的格式怎么办 su卡的动一下就卡怎么办 犀牛vary渲染的太曝光了怎么办 脑子老是乱想幻想控制不住怎么办 猫抓了破了点皮怎么办 小孩子喜欢玩别人家的玩具怎么办 孩子把别人家的玩具玩坏了怎么办 小新和爸妈一起睡觉那他们怎么办 ps画纸画的时候一直在移动怎么办 宝宝磕碰到家具上鼻梁碰破该怎么办 月经推迟11天了怎么办孕测棒单杠 小孩子不小心把蜡笔吃一点怎么办 线切割切割的工件表面有条纹怎么办 苹果手机不能用流量更新吃鸡怎么办 吃鸡更新成雨林如果内存不够怎么办 绝地求生刺激战场背包满了怎么办 绝地求生刺激战场模拟器满了怎么办 绝地求生刺激战场电脑版满了怎么办 绝地求生手游模拟器注册上限怎么办 绝地求生电脑模拟器已达上限怎么办 三星s5锁屏密码忘了怎么办 字画装框的时候起褶皱怎么办 指甲油抹在手上不在指甲上怎么办 我把油画的布割破了怎么办 胜战本领怎么看、走上战场怎么办