iPhone 模拟器的地理定位功能是否仅适用于以太网/有线网络连接?
我正在尝试开发一个使用地理定位库的 iPhone 应用程序。 iPhone 模拟器在不使用 PC 的 Wi-Fi 基础设施的情况下模拟 GPS 功能是否可行?有谁知道 iPhone 模拟器是否可以仅使用您的 IP 地址来确定您的位置(因此只需要以太网电缆连接)?
提前致谢。
I'm trying to develop an iPhone application which uses the geolocation libraries. Is this feasible for the iphone simulator to simulate the GPS functionality without the use of my PC's Wi-Fi infrastructure? Does anyone know if the iphone simulator can spot your location using your IP-address only (so only the Ethernet cable connection is required)?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
模拟器没有此功能,但 iSimulate 有(这不是我的:-( )。它通过 WiFi 连接设备和模拟器,并将位置事件发送到模拟器内的应用程序:真实的 GPS 事件和世界各地的一些预定义位置。很酷!
Simulator doesn't have this functionality, but iSimulate has (it's not mine :-( ). It connects the device and simulator per WiFi and sends location events to the application within simulator: real GPS events and a few predefined locations around the world. Pretty cool!
不,使用以太网无法工作。核心位置似乎只适用于 WIFI,即使最后是同一个路由器。
No it won't work using ethernet. Core location appears to only work with WIFI even though at the end is the same router.
CoreLocation 在模拟器中不起作用,但有一些选项
http://github.com/futuretap/FTLocationSimulator
CoreLocation doesn't work in the simulator, but there are options
http://github.com/futuretap/FTLocationSimulator
您应该在实际设备上测试该功能。我相信模拟器将始终显示加利福尼亚州库比蒂诺作为位置。
You should test that functionality on an actual device. I believe the simulator will always show Cupertino, CA as the location.