A great front-end developer I know is getting into iOS development (horray!), and he had a simple question that he wanted answered in a minute without having to go through all the Xcode and iOS tutorials:
How do I run my Xcode project on my iPhone?
So here it is. To run your Xcode project on your iPhone instead of in the iOS Simulator:
- Plug in your iPhone to your MacBook
- Open your Xcode project
- Open the Organizer window (Window menu » Organizer)
- Click on the Devices tab at the top
- Click on your new device in the left-hand navigation
- Click the “Use for Development” button. (If Organizer asks you to create and upload a developer certificate for you, allow it.)
- Right-click on your device in the left-hand navigation, and click “Add to Provisioning Profile”. (After a few seconds, the yellow circle next to your device in the left-hand navigation will then turn green.)
- Close the Organizer window and go to your Xcode project window
- Click on the iPhone 5.1 Simulator drop-down at the top, and select “Your_iPhone_Device_Name”
- Click the Play button
That’s it! Happy coding!