当我尝试在手机上运行 Xcode 项目时收到消息?

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

I am getting message when I try to run Xcode project to my phone?

iosxcode

提问by mohamed ali

I am getting this message when I try to run Xcode project in my iPhone:

当我尝试在 iPhone 中运行 Xcode 项目时收到此消息:

“(null)” is of a model that is not supported by this version of Xcode. Please use a different device.

“(null)”是这个版本的 Xcode 不支持的模型。请使用其他设备。

Xcode version is 7.3.1,my iPhone is is running iOS9.3.2

Xcode 版本是 7.3.1,我的 iPhone 运行的是 iOS9.3.2

回答by HelloWorld

Simply restart your Xcode and plug your phone off and on again.

只需重新启动 Xcode 并重新打开手机即可。

回答by Arvind Kumar

Restarting only XCode work for me, No need to unplug the iPhone.

仅重新启动 XCode 对我有用,无需拔下 iPhone。

回答by JingJingTao

You could try the following, let me know if none of these work, good luck.

您可以尝试以下操作,如果这些都不起作用,请告诉我,祝您好运。

  1. Use a different USB port
  2. Cannot install app, has some options which might help
  1. 使用不同的 USB 端口
  2. 无法安装应用程序,有一些可能有帮助的选项

回答by Kasia K.

Reattaching the device and restarting XCode worked for me.

重新连接设备并重新启动 XCode 对我有用。

回答by meryemekinci

For me, using a different USB cable was the solution. Restarting Xcode or unplugging/replugging cable did not work. I used a very old cable in the beginning, iPhone was charging but Xcode was not happy with the cable, giving this error.

对我来说,使用不同的 USB 电缆是解决方案。重新启动 Xcode 或拔出/重新插入电缆不起作用。一开始我使用了一根非常旧的电缆,iPhone 正在充电,但 Xcode 对电缆不满意,出现了这个错误。

Sometimes, if it is also first time using iPhone with the Macbook, Xcode doesn't see the iPhone. Unplugging and replugging does the work then.

有时,如果也是第一次在 Macbook 上使用 iPhone,Xcode 看不到 iPhone。然后拔下并重新插入即可。

回答by Nikola

I just want to add my 'weird' situation. Usually, I have my iPhone plugged directly into my MacBook. This time, however, I had it plugged in the Apple's keyboard which was connected to the laptop.

我只想添加我的“奇怪”情况。通常,我将 iPhone 直接插入 MacBook。然而,这一次,我将它插入了连接到笔记本电脑的 Apple 键盘。

Plugging the iPhone into the laptop directly resolved the issue. In my case, I had to restart XCode too.

将 iPhone 直接插入笔记本电脑解决了该问题。就我而言,我也必须重新启动 XCode。

There, hope this will help someone with this kind of issue.

在那里,希望这会帮助遇到此类问题的人。

回答by Ravi Kant

Follow those steps:

请按照以下步骤操作:

  1. Unplug your iPhone via disconnecting the datacable
  2. Restart your Xcode.
  3. Connect again & run.
  1. 通过断开数据线拔掉你的 iPhone
  2. 重新启动您的 Xcode。
  3. 再次连接并运行。

回答by sebbo

For me it was a broken USB cable. Device was shown in XCode but deployment didn't work.

对我来说,这是一根坏掉的 USB 电缆。设备显示在 XCode 中,但部署不起作用。