From bd9935eebb2ea3e415891d5c8b70f0df691ecde6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Tue, 6 Jan 2026 20:57:02 +0800 Subject: [PATCH] platform: Fix gomobile build --- Makefile | 4 ++-- cmd/internal/build_libbox/main.go | 2 +- go.mod | 2 +- go.sum | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index ef0eefe4e..d5be4af9b 100644 --- a/Makefile +++ b/Makefile @@ -248,8 +248,8 @@ lib: go run ./cmd/internal/build_libbox -target ios lib_install: - go install -v github.com/sagernet/gomobile/cmd/gomobile@v0.1.10 - go install -v github.com/sagernet/gomobile/cmd/gobind@v0.1.10 + go install -v github.com/sagernet/gomobile/cmd/gomobile@v0.1.11 + go install -v github.com/sagernet/gomobile/cmd/gobind@v0.1.11 docs: venv/bin/mkdocs serve diff --git a/cmd/internal/build_libbox/main.go b/cmd/internal/build_libbox/main.go index 339cf2876..62f364c49 100644 --- a/cmd/internal/build_libbox/main.go +++ b/cmd/internal/build_libbox/main.go @@ -194,7 +194,7 @@ func buildApple() { } else if debugEnabled { bindTarget = "ios" } else { - bindTarget = "ios,tvos,macos" + bindTarget = "ios,iossimulator,tvos,tvossimulator,macos" } args := []string{ diff --git a/go.mod b/go.mod index 8b81eb9c2..90fdb4017 100644 --- a/go.mod +++ b/go.mod @@ -29,7 +29,7 @@ require ( github.com/sagernet/cronet-go v0.0.0-20251231120443-1d2d7341cbd8 github.com/sagernet/cronet-go/all v0.0.0-20251231120443-1d2d7341cbd8 github.com/sagernet/fswatch v0.1.1 - github.com/sagernet/gomobile v0.1.10 + github.com/sagernet/gomobile v0.1.11 github.com/sagernet/gvisor v0.0.0-20250811.0-sing-box-mod.1 github.com/sagernet/quic-go v0.58.0-sing-box-mod.1 github.com/sagernet/sing v0.8.0-beta.8 diff --git a/go.sum b/go.sum index e6b9081c5..26e745fd7 100644 --- a/go.sum +++ b/go.sum @@ -194,8 +194,8 @@ github.com/sagernet/cronet-go/lib/windows_arm64 v0.0.0-20251231115934-b87a9ae9bd github.com/sagernet/cronet-go/lib/windows_arm64 v0.0.0-20251231115934-b87a9ae9bd80/go.mod h1:n34YyLgapgjWdKa0IoeczjAFCwD3/dxbsH5sucKw0bw= github.com/sagernet/fswatch v0.1.1 h1:YqID+93B7VRfqIH3PArW/XpJv5H4OLEVWDfProGoRQs= github.com/sagernet/fswatch v0.1.1/go.mod h1:nz85laH0mkQqJfaOrqPpkwtU1znMFNVTpT/5oRsVz/o= -github.com/sagernet/gomobile v0.1.10 h1:ElqZ0OVDvyQlU91MU0C9cfU0FrILBbc65+NOKzZ1t0c= -github.com/sagernet/gomobile v0.1.10/go.mod h1:A8l3FlHi2D/+mfcd4HHvk5DGFPW/ShFb9jHP5VmSiDY= +github.com/sagernet/gomobile v0.1.11 h1:niMQAspvuThup5eRZQpsGcbM76zAvnsGr7RUIpnQMDQ= +github.com/sagernet/gomobile v0.1.11/go.mod h1:A8l3FlHi2D/+mfcd4HHvk5DGFPW/ShFb9jHP5VmSiDY= github.com/sagernet/gvisor v0.0.0-20250811.0-sing-box-mod.1 h1:AzCE2RhBjLJ4WIWc/GejpNh+z30d5H1hwaB0nD9eY3o= github.com/sagernet/gvisor v0.0.0-20250811.0-sing-box-mod.1/go.mod h1:NJKBtm9nVEK3iyOYWsUlrDQuoGh4zJ4KOPhSYVidvQ4= github.com/sagernet/netlink v0.0.0-20240612041022-b9a21c07ac6a h1:ObwtHN2VpqE0ZNjr6sGeT00J8uU7JF4cNUdb44/Duis=