Registering iOS Devices for Testing - 註冊測試設備

http://support.smartbear.com/viewarticle/63764/

Applications developed using the iOS Developer Program (not the iOS Developer Enterprise Program) can be tested only on devices specified in the provisioning profile for the application. Application developers need to add devices to the profile before building the .ipa file for distribution. The developers can also register new devices later and rebuild the application with the updated provisioning profile.

ios developer program開發的應用程序可以不進行開發而只在通過provisioning profile的設備上進行測試。應用程序開發者需要在創建ipa文件用於發佈前將這些設備添加到profile中去。開發者也可以在之後註冊新的設備並且使用更新的provisioning profile來重新創建工程。

To add devices to a provisioning profile, you can use either Xcode on the development Mac (the device must be connected to the Mac) or Apple’s Member Center web site. You need to do this regardless of how you instrument your application.

爲了將devices添加到provisioning profile中,你可以使用在mac上使用xcode或者apple的member center站點。

Registering Devices Using Xcode 6

Xcode 6 automatically finds the connected devices. If necessary, it opens a dialog that you can use to add a device to your team development profile.

xcode 6會自動找到連接的設備,如果需要的話,他會打開對話框讓你添加設備到你的team development profile中去。

Registering Devices Using Xcode 5

If you build an application with a team development profile managed by Xcode (for example, the iOS Team Provisioning Profile), you can use Xcode 5 to register test devices connected to the computer.

  • Connect the device to your development Mac.

  • From Xcode’s menu, select Window | Organizer.

  • Switch to the Devices tab.

  • Select the connected device under the Devices section on the left.

  • Click the Use for Development button or (if it does not appear) the Add to Member Center button at the bottom of the window.

    Registering a test device using Xcode

    Click the image to enlarge it.

  • In the dialog that appears, select the check box next to your developer program account and click Choose.

    Xcode will register the device in the Member Center, add it to your team development profile and automatically download the updated profile.

    Note: If you get an error on this step, troubleshoot and fix the problem, and then repeat the steps.

After registering the test devices, rebuild your application with the updated profile so that it can be installed on these devices.

Registering Devices Using Member Center

You can use Apple’s Member Center web site to register test devices that are not connected to the computer.

Note: You must be a team agent or a team admin to do this.

First, you add the test devices to your development program account. To add a device:

  • Get the device identifier (UDID).

  • 獲取device identifier UDID
  • Open the Devices section of the Member Center:

  •  

    http://developer.apple.com/ios/manage/devices/index.action

  • 在member center中打開devices節
  • Click the  button in the upper-right corner.

  • 選擇右上方的加號
  • Select the Register Device radio button.

  • 選擇註冊device按鈕
  • Enter the device name and UDID.

  • 輸入device名稱和udid
  • Click Continue and then Register.

  • 點擊continue並且選擇註冊

Then add the device to the application’s provisioning profile.

然後將設備添加到應用程序的provisioning profile中去。

  • From the menu on the left, select Provisioning Profiles.

  • 在菜單左側選擇provisioning profiles
  • Select the profile to which you want to add the device and click Edit.

  • 選擇你想添加設備的profile然後選擇edit
  • In the Devices list, select all the devices where you want to test the application.

  • 在devices列表中,選擇你想測試用的所有設備
  •  

    Member Center: Edit iOS Provisioning Profile

    Click the image to enlarge it.

  • Click Generate to save the changes.

  • 點擊生成來保存更改
  • Download the updated profile.

  • 下載更新的profile
  • Double-click the downloaded .mobileprovision file to add the profile to Xcode.

  • 雙擊下載的.mobileprovision文件來將profile添加到xcode中

After that, rebuild your application with the updated profile so that it can be installed on the added devices.

完成所有以上的操作後,利用更新的profile重新編譯創建你的應用程序。就可以安裝到你所添加的設備上去了。


轉載地址:http://www.cnblogs.com/lisa090818/p/4284953.html

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章