The Xcode integrated development environment comes with a number of tools to make the iOS application development process easier. One of these tools is an iOS simulator that creates an iOS-lookalike environment directly on your computer. Sometimes, however, you may wish to test your applications on an actual iPhone. If you want Xcode to detect your iPhone so that you can transfer your applications over to the device, you must enable the device for development first.
You can connect your iPhone device to the Xcode application in two ways. Connect the iPhone to the computer via the USB connection cable that came with the device. This creates a standard hard-wired connection that can be used to transfer files and applications from Xcode to the iPhone.