網頁

2012年5月22日 星期二

在xCode中設定你的Code Signing Identity

【環境:xCode4.2 , ios5.1】

xCode必須設定,從develop中下載的認證,去設定該認證為實機測試還是發佈後,才可以去發佈或者實機測試

Setting Your Code Signing Identity

When you build your app to run it on a device, Xcode signs it with a development certificate (also known as a code signing identity) stored on your keychain. To learn how to obtain and install development certificates, see “Provisioning a Device for Development.”
The Code Signing Identity build setting specifies the provisioning profile and code signing identity Xcode uses to sign your binary. Xcode looks for code signing identities in your default keychain.
image: ../art/myapp_project-code_signing_identity_build_setting.jpg
The possible values for the Code Signing Identity build setting are:
  • Don’t Code Sign. Choose this option to build only for a simulator.
  • Automatic Profile Selector. Choose an option under this selector to select a provisioning profile whose name starts with “iPhone Developer” or “iPhone Distribution.”
  • Specific Profile. Choose the code-signing identity under a specific provisioning profile when your app requires special entitlements (see “Provisioning Your Device for Specialized Development”). Expired or otherwise invalid provisioning profiles are dimmed and cannot be used.
    Figure 3-2 shows a set of options for the Code Signing Identity build setting with a provisioning profile for specialized development selected.
    Figure 3-2  Code Signing Identity options with a specialized provisioning profile selected
Project templates are configured to use the automatic selector to set the signing identity. You need to change the value of the Code Signing Identity build setting only when your app uses a specialized provisioning profile. See “Replacing an Expired Certificate” for details.

Specifying the Runtime Environment

Three aspects of your app’s runtime environment are: where your app runs, what app-data is placed in its sandbox, and what location or track the Core Location framework reports to it.

Specifying the Run Destination

Before building your app, Xcode has to know where you want to run it. You specify this run destination in the Scheme toolbar menu. Using that menu you can switch from running your app in a simulator to running it on your device to, for example, test the device performance of your app.
When you plug into your Mac a device with a valid provisioning profile, its name and the iOS version it’s running appear as an option in the Scheme toolbar menu. Use the menu to switch between running your app on a device or in a simulator.
image: ../art/scheme_menu.jpg

沒有留言:

張貼留言