mirror of
https://github.com/xweiba/location-spoofer.git
synced 2026-09-22 22:51:55 +08:00
release: PaopaoLocationSpoofer v1.0.0
- iOS 虚拟定位工具,基于本地 HTTP 代理 MITM 方案 - MapKit 原生地图体验,支持搜索、收藏、实时定位 - 完整的设置引导流程(证书安装、WiFi 代理配置、环境验证) - 支持 iOS 15+,SwiftUI 构建
This commit is contained in:
Executable
+24
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
CORE="$ROOT/Core"
|
||||
BUILD="$CORE/build"
|
||||
|
||||
IOS_SDK="$(xcrun --sdk iphoneos --show-sdk-path)"
|
||||
MIN_IOS_VERSION="15.0"
|
||||
|
||||
export CGO_ENABLED=1
|
||||
export CGO_CFLAGS="-arch arm64 -isysroot $IOS_SDK -miphoneos-version-min=$MIN_IOS_VERSION"
|
||||
export CGO_LDFLAGS="-arch arm64 -isysroot $IOS_SDK -miphoneos-version-min=$MIN_IOS_VERSION"
|
||||
export GOOS="ios"
|
||||
export GOARCH="arm64"
|
||||
|
||||
mkdir -p "$BUILD"
|
||||
cd "$CORE"
|
||||
go mod download
|
||||
go build -buildmode=c-archive -ldflags="-s -w" -o "$BUILD/libwloccore.a" .
|
||||
cp "$BUILD/libwloccore.h" "$ROOT/Core/wloccore.h"
|
||||
test -s "$ROOT/Core/wloccore.h"
|
||||
|
||||
echo "Built $BUILD/libwloccore.a"
|
||||
Executable
+32
@@ -0,0 +1,32 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
cd "$ROOT"
|
||||
|
||||
"$ROOT/Scripts/build-core.sh"
|
||||
command -v xcodegen >/dev/null 2>&1 || { echo "xcodegen is required: brew install xcodegen" >&2; exit 1; }
|
||||
xcodegen generate
|
||||
|
||||
rm -rf build/UnsignedIPA build/DerivedData
|
||||
xcodebuild \
|
||||
-project PaopaoLocationSpoofer.xcodeproj \
|
||||
-scheme PaopaoLocationSpoofer \
|
||||
-configuration Release \
|
||||
-sdk iphoneos \
|
||||
-derivedDataPath build/DerivedData \
|
||||
CODE_SIGNING_ALLOWED=NO \
|
||||
CODE_SIGNING_REQUIRED=NO \
|
||||
build
|
||||
|
||||
APP="build/DerivedData/Build/Products/Release-iphoneos/PaopaoLocationSpoofer.app"
|
||||
if [ ! -d "$APP" ]; then
|
||||
echo "App bundle not found" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir -p build/UnsignedIPA/Payload dist
|
||||
ditto "$APP" "build/UnsignedIPA/Payload/PaopaoLocationSpoofer.app"
|
||||
cd build/UnsignedIPA
|
||||
zip -qry "$ROOT/dist/PaopaoLocationSpoofer-unsigned.ipa" Payload
|
||||
echo "Output: dist/PaopaoLocationSpoofer-unsigned.ipa"
|
||||
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>com.apple.security.application-groups</key>
|
||||
<array>
|
||||
<string>group.com.paopaolabs.location-spoofer</string>
|
||||
</array>
|
||||
<key>application-identifier</key>
|
||||
<string>$(AppIdentifierPrefix)com.paopaolabs.location-spoofer</string>
|
||||
<key>keychain-access-groups</key>
|
||||
<array>
|
||||
<string>$(AppIdentifierPrefix)com.paopaolabs.location-spoofer</string>
|
||||
</array>
|
||||
<key>get-task-allow</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
||||
Executable
+14
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
cd "$ROOT"
|
||||
|
||||
if ! command -v xcodegen >/dev/null 2>&1; then
|
||||
brew install xcodegen
|
||||
fi
|
||||
|
||||
"$ROOT/Scripts/build-core.sh"
|
||||
xcodegen generate
|
||||
|
||||
echo "Project generated. Run make ipa-unsigned to build an unsigned IPA."
|
||||
Reference in New Issue
Block a user