iPhone 无法在 Xcode 6 beta 中连接

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/24233220/
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-15 05:05:49  来源:igfitidea点击:

iPhone won't connect in Xcode 6 beta

iosiphonexcodeios8

提问by Chris C

I updated both iOS 8 and Xcode 6 beta. When I connect my phone, it shows up as "ineligible device" where you select which platform you want to run on.

我更新了 iOS 8 和 Xcode 6 beta。当我连接手机时,它显示为“不合格设备”,您可以在其中选择要在哪个平台上运行。

When I try to run the project on my actual iPhone, an error message in Xcode appears that says:

当我尝试在我的实际 iPhone 上运行该项目时,Xcode 中出现一条错误消息,内容为:

An error was encountered while enabling development on this device.

在此设备上启用开发时遇到错误。

If anyone knows how I can fix this, I would much appreciate it because I haven't found much info on this error message.

如果有人知道如何解决此问题,我将不胜感激,因为我没有找到有关此错误消息的太多信息。

回答by Nath

I've had the same problem. I closed Xcode made sure my phone was connected then reloaded Xcode and that worked for me.

我遇到了同样的问题。我关闭了 Xcode,确保我的手机已连接,然后重新加载 Xcode,这对我有用。

回答by dominik

For me changing the Command Line Tools to Xcode 6 (instead of Xcode 5.1.1) under "Preferences" -- "Locations" -- "Command Line Tools" did the trick..

对我来说,在“首选项”--“位置”--“命令行工具”下将命令行工具更改为 Xcode 6(而不是 Xcode 5.1.1)就成功了。

enter image description here

在此处输入图片说明

回答by Victor

XCode proposes restarting the device and that doesn't work. Instead restarting XCode itself did the trick for me.

XCode 建议重新启动设备,但这不起作用。而是重新启动 XCode 本身对我有用。

回答by Aleksey Khatmullin

After installing new version Xcode, propose install additional components for debugging. If these components not installed, propose Xcode again for installation. Simplest way to check for existence of required components:

安装新版本Xcode后,建议安装额外的组件进行调试。如果没有安装这些组件,建议重新安装Xcode。检查所需组件是否存在的最简单方法:

  1. Relaunch Xcode
  2. Install required components
  1. 重新启动Xcode
  2. 安装所需组件

This is worked for me!

这对我有用!

回答by Alex Beals

I got stuck on this for forever. Make sure that you didn't choose "Don't Trust" with the computer. If you did, then you will need to make the prompt come up again, and choose "Trust". If your phone is jailbroken, make sure you don't have any tweak (NoAnnoyance for me) that auto chooses "Don't Trust".

我永远被困在这个问题上。确保您没有对计算机选择“不信任”。如果您这样做了,那么您将需要再次出现提示,并选择“信任”。如果您的手机已越狱,请确保您没有任何自动选择“不信任”的调整(对我来说是 NoAnnoyance)。