xcode - 无法获得对握手数据包的回复

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

xcode - failed to get reply to handshake packet

xcodeunity3dhandshake

提问by Sailendu

When I make a build, the build is installed in the device but XCode is giving this error:

当我进行构建时,该构建已安装在设备中,但 XCode 出现此错误:

"failed to get reply to handshake packet"

“未能收到握手包的回复”

and it won't launch the game, so I'm not able to see the console for debugging. The game runs fine if I manually start it in the device. I need the see the console for debugging.

它不会启动游戏,所以我无法看到控制台进行调试。如果我在设备中手动启动它,游戏运行良好。我需要查看控制台进行调试。

My XCode version is 5.1 iOS version in the device is 7.1 (iPod Touch 5th gen) Unity is 4.3.3

我的 XCode 版本是 5.1 设备中的 iOS 版本是 7.1(iPod Touch 5th gen)Unity 是 4.3.3

I really appreciate any solution from you guys.

我真的很感谢你们的任何解决方案。

Thanks in advance.

提前致谢。

回答by Randy Layman

This might be a bit late for the op, but I found that my problem was caused by having my app running manually on the device. It seems that if you launch the app on the device then xcode can't connect to the process and the handshake error is reported.

这对于 op 来说可能有点晚了,但我发现我的问题是由我的应用程序在设备上手动运行引起的。似乎如果您在设备上启动该应用程序,则 xcode 无法连接到该进程并报告握手错误。

回答by Fabio Berger

I know it's a late answer, but in my case a simple Clean command solved the problem.

我知道这是一个迟到的答案,但就我而言,一个简单的 Clean 命令解决了这个问题。

回答by Tal Haham

Restart of the device solved the problem for me

重新启动设备为我解决了问题

回答by ceekay

Cmd+Shift+Ksolved my issue.

Cmd+ Shift+K解决了我的问题。

This combination actually cleans the build folder. This way the next build will be fresh and will remove any issues in the previous build(s).

这种组合实际上清理了构建文件夹。这样,下一个构建将是全新的,并将消除之前构建中的任何问题。

回答by Rhythmic Fistman

Check that you're not running using a release configuration.

检查您没有使用发布配置运行。

Go to Product Menu > Scheme > Edit Scheme and make sure that the Run item is using the Debug build configuration.

转到产品菜单 > 方案 > 编辑方案并确保运行项使用调试构建配置。