iPhone - Cannot run apps from XCode on iOS 5.0.1 device, since iOS update from 5.0

假装没事ソ 提交于 2019-12-05 15:03:47

问题


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:


  1. Disconnect your iPhone.

  2. Quit iTunes & XCode.

  3. Turn off and restart your iPhone.

  4. Connect your iPhone, wait for itunes to finish syncing (if you have it set to launch automatically).

  5. Close iTunes, then open XCode.

  6. Go to organizer and see if it recognizes the iPhone for development or will let you re-enable use for development.

  7. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!