Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Test App on Real iPhone [duplicate]

Tags:

Possible Duplicate:
Deploy an iphone app from xcode to iphone

Hi I have tested my app using the iOS simulator. How can I test it on my own iphone? I am an Apple developer member.

like image 340
user559142 Avatar asked Jun 16 '11 12:06

user559142


People also ask

How can I test my iOS app on a real device?

Open up a project in Xcode and click on the device near the Run ▶ button at the top left of your Xcode screen. Plug your iPhone into your computer. You can select your device from the top of the list. Unlock your device and (⌘R) run the application.

Can you duplicate an app on iPhone?

How to Duplicate App Icons on an iPhone or iPad. Creating a duplicate copy of an app icon is easy. Find the app in the App Library, then drag a new copy of it onto your Home Screen: Swipe to the App Library at the right edge of all your Home Screens.


1 Answers

The first thing you need is a development certificate. Visit the iOS provisioning portal and follow the steps here: http://developer.apple.com/ios/manage/certificates/team/howto.action:

enter image description here

Once that is done, you can do everything else from Xcode. Using Xcode 4:

  1. Connect your device via USB.
  2. Open the Xcode organizer (Window->Organizer)
  3. Select "Provisioning Profiles"

    enter image description here

  4. Check the "Automatic Device Provisioning" checkbox and click "Refresh"

    enter image description here

    You will be prompted to enter your developer account username and password. Do this.

    This step will automatically create and download a wildcard (*) provisioning profile that you can use for testing any application on your device.

  5. After a few seconds you should see this new profile appear in the list with the name "Team Provisioning Profile: *"

    enter image description here

  6. Restart Xcode just to be safe. Sometimes it can get confused.

  7. Open a project and select your device from the main schemes dropdown box:

    enter image description here

  8. Build and run.

    If that doesn't work straight away, make sure your target has the correct code signing options. Find your target's build settings and for the Debug configuration choose "iPhone Developer" under the "Automatic Profile Selector" group in the dropdown:

    enter image description here

    This should be selected by default.

Good luck!

like image 71
Mike Weller Avatar answered Sep 22 '22 00:09

Mike Weller