mirror of
https://github.com/xweiba/location-spoofer.git
synced 2026-09-21 22:30:46 +08:00
release: PaopaoLocationSpoofer v1.0.0
- iOS 虚拟定位工具,基于本地 HTTP 代理 MITM 方案 - MapKit 原生地图体验,支持搜索、收藏、实时定位 - 完整的设置引导流程(证书安装、WiFi 代理配置、环境验证) - 支持 iOS 15+,SwiftUI 构建
This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
cd "$ROOT"
|
||||
|
||||
usage() {
|
||||
cat <<'USAGE'
|
||||
Usage: ./build.sh [--test]
|
||||
|
||||
Builds dist/PaopaoLocationSpoofer-unsigned.ipa without signing it.
|
||||
|
||||
Options:
|
||||
--test After the unsigned IPA is created, run iOS Simulator unit tests.
|
||||
USAGE
|
||||
}
|
||||
|
||||
require_command() {
|
||||
local command_name="$1"
|
||||
local install_hint="$2"
|
||||
|
||||
if ! command -v "$command_name" >/dev/null 2>&1; then
|
||||
echo "Missing required command: $command_name" >&2
|
||||
echo "$install_hint" >&2
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
run_simulator_tests() {
|
||||
local simulator_destination="${SIMULATOR_DESTINATION:-platform=iOS Simulator,name=iPhone 16}"
|
||||
|
||||
xcodebuild \
|
||||
-project PaopaoLocationSpoofer.xcodeproj \
|
||||
-scheme PaopaoLocationSpoofer \
|
||||
-destination "$simulator_destination" \
|
||||
test
|
||||
}
|
||||
|
||||
run_tests=0
|
||||
case "${1:-}" in
|
||||
'')
|
||||
;;
|
||||
--test)
|
||||
run_tests=1
|
||||
;;
|
||||
-h|--help)
|
||||
usage
|
||||
exit 0
|
||||
;;
|
||||
*)
|
||||
usage >&2
|
||||
exit 2
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ "$#" -gt 1 ]; then
|
||||
usage >&2
|
||||
exit 2
|
||||
fi
|
||||
|
||||
require_command xcrun "Install Xcode and its Command Line Tools."
|
||||
require_command xcodebuild "Install Xcode and select it with xcode-select."
|
||||
require_command xcodegen "Install XcodeGen: brew install xcodegen"
|
||||
require_command go "Install Go 1.23 or newer."
|
||||
|
||||
"$ROOT/Scripts/build-unsigned-ipa.sh"
|
||||
|
||||
IPA="$ROOT/dist/PaopaoLocationSpoofer-unsigned.ipa"
|
||||
test -s "$IPA"
|
||||
echo "Unsigned IPA created: $IPA"
|
||||
|
||||
if [ "$run_tests" -eq 1 ]; then
|
||||
run_simulator_tests
|
||||
fi
|
||||
|
||||
echo "Next: sign with Impact (https://github.com/claration/Impactor) and install on device."
|
||||
Reference in New Issue
Block a user