从iOS 17开始,Apple修改了Developer Disk Images等相关功能,导致了先前可用的Location Simulator、iFake Location等软体暂时无法正常使用。 iToolPaw iGPSGo 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 -- x y
其中,和就是上面记录的RSD位址和RSD接口,x和y是经纬度座标。 根据自行的需要替换即可。
参考连结
https://github.com/doronz88/pymobiledevice3 https://v2ex.com/t/975231