mirror of
https://github.com/xweiba/location-spoofer.git
synced 2026-09-22 06:40:44 +08:00
- iOS 虚拟定位工具,基于本地 HTTP 代理 MITM 方案 - MapKit 原生地图体验,支持搜索、收藏、实时定位 - 完整的设置引导流程(证书安装、WiFi 代理配置、环境验证) - 支持 iOS 15+,SwiftUI 构建
1.2 KiB
1.2 KiB
Build
Requirements
- macOS with Xcode and Command Line Tools
- Go 1.23 or newer
- XcodeGen (
brew install xcodegen)
One-command build
./build.sh
该脚本会先检查 xcrun、xcodebuild、xcodegen 和 go,随后构建 iOS Go 静态库、重新生成 Xcode 工程、构建并输出未签名 IPA。
如需在未签名 IPA 已生成后额外运行 PaopaoLocationSpoofer 的 iOS Simulator 单元测试:
./build.sh --test
--test 默认使用名为 iPhone 16 的 Simulator。若本机没有该设备,请传入已安装设备的 destination:
SIMULATOR_DESTINATION='platform=iOS Simulator,name=<你的模拟器名称>' ./build.sh --test
Output:
dist/PaopaoLocationSpoofer-unsigned.ipa
IPA 始终保持未签名。用 Impact 签名安装即可。
发布验收
./build.sh通过并输出未签名 IPA- 用 Impact 签名后安装到设备
- 真机安装后,按引导下载 CA → 安装 → 信任,再配置 WiFi HTTP 代理
127.0.0.1:8888 - 环境检测通过后,选点开启虚拟定位
- 打开 Apple 地图验证定位是否变为虚拟位置
- 若失败,查看诊断页的日志信息