In the Build Settings make sure the Code Signing Identity is set to Developer and not Distribution. You must have an Apple Developer login and the appropriate provisioning and the device you install the app on must be registered in the Provisioning Portal. You can go to Certificates, Identifiers & Profiles and login with you Apple Developer login to make sure the device is registered in the Provision Portal. Using XCode Organizer (in Xcode menu bar, go to Window->Organizer). You should see your iPhone in the devices list. Select your iPhone and click the ‘use for development’ button. There’s also an Apple support page which will help you locate your device UDID.