views:

61

answers:

1

I have an iPhone & necessary certificates also, But don't know how to debug an application using xCode to iPhone.

EDIT I have all these. I have mac mini & iPhone 3g. The question is - I don't know how to use all these certificates? I want to debug an application - having shake handling code. That I can't debug on simulator. So I just want to print x,y & z ( nslog ) while I am shaking phone. Means, It's only possible when I am debugging with iPhone.

Thanks in advance for sharing your knowledge.

Sagar

+1  A: 

Thanks for clearing things up. Login to iPhone Developer connection. Go to: http://developer.apple.com/iphone/manage/overview/index.action

Then follow on the right tab make sure you: 1. Register your phone under "Devices" 2. Register the name of your app under "APP IDs" 3. Download an app prov profile under "Provisioning" to a local folder

Install the provisioning profile on the device, through: 1. Drag and Drop to iTunes and Sync your iPhone 2. Drag and drop to XCode menu->Window ->Organizer -> Provisioning

Confirm that the provisioning profile is in the list.

Choose the Active SDK for the Debug (Tab Located just below the close,minimize buttons of window) select: Device - 3.1.2(or other SDK build you have).

Then hit Xcode Menu -> Run -> Debugger -> Build and Go (Click Console icon which is another helpful tool)

This should:

  1. Install the provisioning profile on the phone. Confirm by checking(on the iPhone) Settings -> General -> Profiles -> NameofProvisioningProfile

  2. Install and Run the app.

erastusnjuki