iOS 17虚拟定位教程
从iOS 17开始,Apple修改了Developer Disk Images等相关功能,导致了先前可用的Location Simulator、iFake Location等软件暂时无法正常使用。iMyFone Mac版 V6.5及更新版本已经支持了iOS 17的虚拟定位功能,但是需要付费。本文将介绍使用免费的pymobiledevice3实现iOS 17的虚拟定位功能。
不过无论是iMyFone还是pymobiledevice3,目前都仅支持macOS系统,Windows系统暂时无法实现iOS 17的虚拟定位功能。
安装 pymobiledevice3
使用pip
安装:
python3 -m pip install -U pymobiledevice3
使用开发者工具连接设备
连接需要虚拟定位的iOS设备,首先使用下面的命令创建一个可信通道:
sudo python3 -m pymobiledevice3 remote start-quic-tunnel
连接成功后,应该回返回类似这样的输出:
Interface: utun6
RSD Address: fd7b:e5b:6f53::1
RSD Port: 64337
Use the follow connection option:
--rsd fd7b:e5b:6f53::1 64337
记录下这里的RSD地址和RSD接口,后面会用到。
挂载Developer Disk Image & 开始虚拟定位
使用下面的命令挂载Developer Disk Image:
sudo pymobiledevice3 mounter auto-mount
随后,就可以使用下面的命令进行虚拟定位:
pymobiledevice3 developer dvt simulate-location set --rsd <HOST> <PORT> -- x y
其中,<HOST>
和<PORT>
就是上面记录的RSD地址和RSD接口,x
和y
是经纬度坐标。根据自行的需要替换即可。