xcode 无法从设备 (iPhone) 接收消息

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

Could not receive a message from the device (iPhone)

iphonexcodeinstallationipod-touch

提问by JOM

I built and run an iPhone application on iPod Touch 2.2.1device, got some problems and made a fix attempt. Now trying to re-build & run the application gives two (2) error popup notes:

我在iPod Touch 2.2.1设备上构建并运行 iPhone 应用程序,遇到一些问题并尝试修复。现在尝试重新构建和运行应用程序会给出两 (2) 个错误弹出注释:

Could not receive a message from the device [OK]

无法从设备接收消息 [确定]

Google couldn't find this! The device itself is working happily, I can even launch and use the app I'm trying to install. iTunes looks like it's still connected... What could be the problem?

谷歌找不到这个!设备本身运行良好,我什至可以启动和使用我正在尝试安装的应用程序。iTunes 看起来仍处于连接状态...可能是什么问题?

Screenshot

截屏

回答by bentford

Restart the iPhone.

重新启动 iPhone。

回答by Jayprakash Dubey

Restart your iPhone device. Also, restart Xcode. This worked for me.

重新启动您的 iPhone 设备。另外,重新启动Xcode。这对我有用。

回答by Marjan

Are you using some "cheap" USB cable? This was the cause in my case.

您使用的是“便宜”的 USB 数据线吗?这就是我的原因。

回答by Florian

Just got the same message. I fixed it by connecting my iPhone directly to my Macs USB-Port instead of connecting it to a USB-Hub.

刚刚收到同样的消息。我通过将 iPhone 直接连接到 Mac 的 USB 端口而不是将其连接到 USB 集线器来修复它。

回答by kalpesh

I was having the same issue, and it was due to having old WiFi connection settings. I just connect new WiFi in both iMac and iPhone. I never connect via USB. iMac automatically connects to my iPhone and I can debug directly on my iPhone. Sometimes the connection is loose; in that case, I just go to

我遇到了同样的问题,这是由于旧的 WiFi 连接设置。我只是在 iMac 和 iPhone 中连接了新的 WiFi。我从不通过 USB 连接。iMac 自动连接到我的 iPhone,我可以直接在我的 iPhone 上调试。有时连接松动;在那种情况下,我只是去

-> Windows-> Device and simulators-> select my device-> right click-> connect vai IP address.

-> Windows->设备和模拟器->选择我的设备->右键单击->连接虚拟 IP 地址

Just enter an IP address from my iPhone WiFi. For that, just go to --> WiFi of iPhone-> info (symbol)-> IP address.

只需从我的 iPhone WiFi 输入一个 IP 地址。为此,只需转到 --> iPhone WiFi-> info (symbol)-> IP address

回答by Kristian Bauer

Received this message recently and tried the steps above, specifically different combinations of restarting the iPhone, disconnecting/reconnecting it, and quitting/restarting Xcode.

最近收到此消息并尝试了上述步骤,特别是重新启动 iPhone、断开/重新连接和退出/重新启动 Xcode 的不同组合。

In the end, I restarted my comp and it works fine now.

最后,我重新启动了我的电脑,现在它运行良好。

回答by negersiu

I also got this messsage, the problem was too many devices (via USB) connected to my MacBook Pro.

我也收到了这条消息,问题是连接到我的 MacBook Pro 的设备太多(通过 USB)。