iPhone 模拟器的地理定位功能是否仅适用于以太网/有线网络连接?

发布于 2024-10-31 08:31:17 字数 152 浏览 8 评论 0原文

我正在尝试开发一个使用地理定位库的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

眼泪都笑了 2024-11-07 08:31:21

模拟器没有此功能,但 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!

南汐寒笙箫 2024-11-07 08:31:20

不,使用以太网无法工作。核心位置似乎只适用于 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.

无所的.畏惧 2024-11-07 08:31:20

CoreLocation 在模拟器中不起作用,但有一些选项

http://github.com/futuretap/FTLocationSimulator

CoreLocation doesn't work in the simulator, but there are options

http://github.com/futuretap/FTLocationSimulator

北风几吹夏 2024-11-07 08:31:19

您应该在实际设备上测试该功能。我相信模拟器将始终显示加利福尼亚州库比蒂诺作为位置。

You should test that functionality on an actual device. I believe the simulator will always show Cupertino, CA as the location.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文