Search code examples
iosxcode4xcode4.1

How to use device instead of Simulator


I am a new with iphone development and want to test my application on my iphone . I have paid $100 but can not find any way to workout how to do that . There are some references around but they are for xcode 3.

Any help would be much appreciated.


Solution

  • First you have to get your developer certificate/keys set up on your mac. See the developer portal where there are detailed instructions on how to get this set up.

    Once you have your certificate, plug in your device, and press cmd + shift + 2 in XCode - to load up the organizer. Select the devices pane, click on your device, and click the 'use for development' button. It will ask you to put your username/password in for your dev account, and then it will enable your device for development. After it has been enabled, you simply select it as the target to build to in the top-left of the main Xcode window.