问题
I have just updated my iPhone to iOS 5.0.1 and XCode doesn't recognize it anymore as a valid device to run applications.
I have gone to the organizer, reset the device as a development device, updated my components and library... but still nothing. The device doesn't appear in the available destinations into the main window popup...
How can I do to test again on the device ?
回答1:
Disconnect your iPhone.
Quit iTunes & XCode.
Turn off and restart your iPhone.
Connect your iPhone, wait for itunes to finish syncing (if you have it set to launch automatically).
Close iTunes, then open XCode.
Go to organizer and see if it recognizes the iPhone for development or will let you re-enable use for development.
If all that fails, reset your iPhone (gasp!) then do all this again. =(
回答2:
Select your device in Xcode's organizer, and the click "Add to Portal". Xcode will communicate with the mothership, decide your device is OK after all, and it will then once again become available for testing.
回答3:
Also if your deployment target is higher than the OS version of the device, it will not show up as a valid device.
回答4:
it worked for me like this:
- select the main project on the left window of Xcode
- select the "summary" tab on the central window.
- change "deployment target" to 5.0
- click "validate settings"
- that's it. Now my device is on the list!
- select the device and click Run
Xcode 4.3.2, Lion 10.7.3, iPhone4 iOS 5.0.1, (using Jailcoder)
来源:https://stackoverflow.com/questions/8100820/iphone-cannot-run-apps-from-xcode-on-ios-5-0-1-device-since-ios-update-from-5