iPhone - Cannot run apps from XCode on iOS 5.0.1 device, since iOS update from 5.0
Solution 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. =(
Solution 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.
Solution 3
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)
Solution 4
Also if your deployment target is higher than the OS version of the device, it will not show up as a valid device.
Oliver
Updated on June 30, 2022Comments
-
Oliver almost 2 years
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 ?
-
drewish over 12 yearsI tried that but it keeps getting stuck trying to collect the debugging symbols. I'm wondering if it's because I got the update OTA rather than via iTunes.
-
Clay almost 12 yearsThis fixed a problem I was having when I changed the bundle identifier, where it would build and deploy to the device, but throw an error that it was unable to run the executable.