简体   繁体   English

在iPad和模拟器之间测试GKSession(iOS 6)

[英]Testing GKSession between an ipad and simulator (iOS 6)

I am trying to start a GKSession between a simulator and ipad. 我正在尝试在模拟器和ipad之间启动GKSession。 But i think they are not even connecting because i try to list the clients and servers respectively. 但是我认为他们甚至都没有连接,因为我尝试分别列出客户端和服务器。 Nothing is displayed on both the device and the simulator. 设备和模拟器上均不显示任何内容。 I was trying this Ray Wenderlich's tutorial http://www.raywenderlich.com/12735/how-to-make-a-simple-playing-card-game-with-multiplayer-and-bluetooth-part-1 and even the 2nd part of the tutorial. 我正在尝试Ray Wenderlich的教程http://www.raywenderlich.com/12735/how-to-make-a-simple-playing-card-game-with-multiplayer-and-bluetooth-part-1甚至第二版本教程的一部分。 Well I tried downloading their project and tried running it. 好吧,我尝试下载他们的项目并尝试运行它。 It does not list the clients and severs so i am assuming that it is not connecting at all. 它没有列出客户端和服务器,所以我假设它根本没有连接。 And i was thinking maybe its because i am using it on iOS6.0.1? 我在想也许是因为我在iOS6.0.1上使用它吗? Do you reckon its the version issue? 您认为其版本问题吗?

I am not posting any code here because i was just trying to follow the tutorial above. 我没有在这里发布任何代码,因为我只是想按照上面的教程进行操作。 And ofcourse there are no other error.. they are running perfectly fine, its just that the clients and server is not listed. 当然,没有其他错误。它们运行得很好,只是没有列出客户端和服务器。

Any help would be highly appreciated. 任何帮助将不胜感激。

I need to answer this, it was because i was trying to run this code in my organization's network environment (the network has restrictions). 我需要回答这个问题,这是因为我试图在组织的网络环境(网络有限制)中运行此代码。 so when i tried at the home network it did work perfectly fine. 因此,当我在家庭网络中尝试时,它确实工作正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM