简体   繁体   English

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

[英]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.您可以尝试以下操作,如果这些都不起作用,请告诉我,祝您好运。

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

重新连接设备并重新启动 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:请按照以下步骤操作:

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

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.

相关问题 当我尝试运行Xcode项目时,它显示了我上传图像的链接器错误 - When I try to run my Xcode project, it shows that linker error which I uploaded the image 当我尝试从 Jenkins 构建 Xcode 项目时,出现错误“字符串索引超出范围 15” - When I try to build Xcode project from Jenkins, I am getting the error "String index out of range 15" 当我在 ios 模拟器上运行我的 flutter 项目时出现此错误:-ProcessException:进程超时: - I am getting this error when i run my flutter project on ios simulator:-ProcessException: Process timed out: 为什么我的Xcode项目中出现以下错误:没有这样的模块'SwiftyJSON'? - Why am I getting the following error in my Xcode project: No such module 'SwiftyJSON'? 为什么在xcode 7.2.1中创建项目存档时出现此链接器错误? - why am i getting this linker error while creating archive of my project in xcode 7.2.1 当我尝试运行我的应用程序时Xcode 6.1崩溃 - Xcode 6.1 crashing when I try to run my app 尝试构建项目时出现以下错误 - I am getting the following error when i am trying t o build my project 当我尝试在设备中启动我的应用程序时,在xcode中由于启动选项nil出现错误? - when I am trying to launch my app in my device and I am getting the error as launch option nil in my xcode? 我在Xcode中更改了项目的名称,现在当我运行它时出现错误 - I changed the name of my project in Xcode, now when I run it I got an error 我在xcode 5中打开xcode 4.5项目时收到警告 - Getting a warning when i opened my xcode 4.5 project in xcode 5
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM