iPhone - 无法在 iOS 5.0.1 设备上运行来自 XCode 的应用程序,因为 iOS 从 5.0 更新

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8100820/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 22:23:34  来源:igfitidea点击:

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

iphoneiosxcodexcode4

提问by Oliver

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.

我刚刚将我的 iPhone 更新到 iOS 5.0.1 并且 XCode 不再将其识别为运行应用程序的有效设备。

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 ?

我该怎么做才能在设备上再次测试?

回答by TigerCoding

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

  1. 断开您的 iPhone。

  2. 退出 iTunes 和 XCode。

  3. 关闭并重新启动您的 iPhone。

  4. 连接您的 iPhone,等待 iTunes 完成同步(如果您已将其设置为自动启动)。

  5. 关闭 iTunes,然后打开 XCode。

  6. 转到管理器,看看它是否识别用于开发的 iPhone 或会让您重新启用用于开发。

  7. 如果一切都失败了,请重置你的 iPhone(喘气!)然后再做一遍。=(

回答by Duncan Babbage

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.

在 Xcode 的管理器中选择您的设备,然后单击“添加到门户”。Xcode 将与母舰通信,最终确定您的设备是否正常,然后它将再次可供测试。

回答by meelawsh

Also if your deployment target is higher than the OS version of the device, it will not show up as a valid device.

此外,如果您的部署目标高于设备的操作系统版本,则它不会显示为有效设备。

回答by kilaz

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 的左侧窗口中选择主项目
  • 选择中央窗口上的“摘要”选项卡。
  • 将“部署目标”更改为 5.0
  • 点击“验证设置”
  • 就是这样。现在我的设备在列表中!
  • 选择设备并单击运行

Xcode 4.3.2, Lion 10.7.3, iPhone4 iOS 5.0.1, (using Jailcoder)

Xcode 4.3.2, Lion 10.7.3, iPhone4 iOS 5.0.1, (使用 Jailcoder)