[英]I am getting an error message when I try to run a Xcode project on my phone?
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.
Xcode version is 7.3.1,my iPhone is is running iOS9.3.2 Xcode 版本是 7.3.1,我的 iPhone 运行的是 iOS9.3.2
只需重新启动 Xcode 并重新打开手机即可。
仅重新启动 XCode 对我有用,无需拔下 iPhone。
You could try the following, let me know if none of these work, good luck.您可以尝试以下操作,如果这些都不起作用,请告诉我,祝您好运。
重新连接设备并重新启动 XCode 对我有用。
For me, using a different USB cable was the solution.对我来说,使用不同的 USB 电缆是解决方案。 Restarting Xcode or unplugging/replugging cable did not work.
重新启动 Xcode 或拔下/重新插入电缆不起作用。 I used a very old cable in the beginning, iPhone was charging but Xcode was not happy with the cable, giving this error.
一开始我使用了一根非常旧的电缆,iPhone 正在充电,但 Xcode 对电缆不满意,出现了这个错误。
Sometimes, if it is also first time using iPhone with the Macbook, Xcode doesn't see the iPhone.有时,如果它也是第一次在 Macbook 上使用 iPhone,Xcode 看不到 iPhone。 Unplugging and replugging does the work then.
然后拔下并重新插入即可。
I just want to add my 'weird' situation.我只想添加我的“奇怪”情况。 Usually, I have my iPhone plugged directly into my MacBook.
通常,我将 iPhone 直接插入 MacBook。 This time, however, I had it plugged in the Apple's keyboard which was connected to the laptop.
然而,这一次,我将它插入了连接到笔记本电脑的 Apple 键盘。
Plugging the iPhone into the laptop directly resolved the issue.将 iPhone 直接插入笔记本电脑解决了该问题。 In my case, I had to restart XCode too.
就我而言,我也必须重新启动 XCode。
There, hope this will help someone with this kind of issue.在那里,希望这会帮助遇到此类问题的人。
Follow those steps:请按照以下步骤操作:
For me it was a broken USB cable.对我来说,这是一根坏掉的 USB 电缆。 Device was shown in XCode but deployment didn't work.
设备显示在 XCode 中,但部署不起作用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.