-
Notifications
You must be signed in to change notification settings - Fork 18
Description
Hello! I am trying to test some of the newer changes, but I am unable to creating a working build from main. It seems that recent changes to a forked custom version of gomobile may have caused some issues.
I have followed the listed directions of installing the custom fork (go install github.com/netbirdio/gomobile-tvos-fork/cmd/gomobile-netbird@v0.0.0-20260116114523-a186bb8f1f40), running gomobile-netbird init as well as the additional undocumented step of adding the gomobile dependency to the netbird repo (go get github.com/netbirdio/gomobile-tvos-fork@v0.0.0-20260116114523-a186bb8f1f40). I am able to build and run the application, but it instantly crashes on the hitting the connect button.
Logs:
10.29.0 - [FirebasePerformance][I-PRF200004] Trace feature is disabled.
10.29.0 - [FirebasePerformance][I-PRF200004] Trace feature is disabled.
App is inactive!
10.29.0 - [FirebasePerformance][I-PRF200004] Trace feature is disabled.
10.29.0 - [FirebasePerformance][I-PRF200004] Trace feature is disabled.
App is active!
connect: ENTRY POINT - function called
connect: connectPressed=true, buttonLock=true, starting adapter...
connect: Task started, calling networkExtensionAdapter.start()
start: ENTRY - beginning VPN start sequence
start: calling configureManager()...
start: configureManager() completed, calling loginIfRequired()...
loginIfRequired: starting...
isLoginRequired: checking config at /private/var/mobile/Containers/Shared/AppGroup/<uuid>/netbird.cfg, state at /private/var/mobile/Containers/Shared/AppGroup/<uuid>/state.json
isLoginRequired: configFile exists = false, stateFile exists = false
Inputs to sdk iPhone 26.2 iOS
panic: seq.Inc: unknown refnum: -24
goroutine 17 [running, locked to thread]:
golang.org/x/mobile/bind/seq.Inc(0xffffffe8)
/Users/john/.gvm/pkgsets/go1.24.1/global/pkg/mod/golang.org/x/mobile@v0.0.0-20251126181937-5c265dc024c4/bind/seq/ref.go:132 +0x1bc
main.IncGoRef(...)
/private/var/folders/v1/qkk1qpvx2hvd_p4803zkr3jh0000gp/T/gomobile-work-2708378460/ios/src-arm64/gobind/seq.go:49
The unknown ref num really seems like some kind of an issue with generated go mobile code, but still uncertain.