Jigsaw-Code / outline-go-tun2socks

Apache License 2.0
231 stars 94 forks source link

Error building Tun2Socks on MacOS Sonoma #128

Open pavel-vorobyev opened 1 year ago

pavel-vorobyev commented 1 year ago

Tried to build on MacOS Sonoma for apple and got this error:

rm -rf "/Users/user/Files/outline-go-tun2socks/build"
go clean
env GOBIN="/Users/user/Files/outline-go-tun2socks/bin" go install golang.org/x/mobile/cmd/gomobile
env GOBIN="/Users/user/Files/outline-go-tun2socks/bin" /Users/user/Files/outline-go-tun2socks/bin/gomobile init
env PATH="/Users/user/Files/outline-go-tun2socks/bin:/Library/Frameworks/Python.framework/Versions/3.12/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.8/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/MacGPG2/bin:/usr/local/go/bin:/Users/user/flutter/bin" "/Users/user/Files/outline-go-tun2socks/bin/gomobile" bind -iosversion=11.0 -target=ios,iossimulator -o /Users/user/Files/outline-go-tun2socks/build/ios/Tun2socks.xcframework -ldflags '-s -w' -bundleid org.outline.tun2socks github.com/Jigsaw-Code/outline-go-tun2socks/outline/tun2socks github.com/Jigsaw-Code/outline-go-tun2socks/outline/shadowsocks
/Users/user/Files/outline-go-tun2socks/bin/gomobile: xcodebuild -create-xcframework -framework /var/folders/36/m2hq2hc910v6b_q2q82vsrrr0000gn/T/gomobile-work-3566289854/ios/iphoneos/Tun2socks.framework -framework /var/folders/36/m2hq2hc910v6b_q2q82vsrrr0000gn/T/gomobile-work-3566289854/iossimulator/iphonesimulator/Tun2socks.framework -framework /var/folders/36/m2hq2hc910v6b_q2q82vsrrr0000gn/T/gomobile-work-3566289854/iossimulator/iphonesimulator/Tun2socks.framework -output /Users/user/Files/outline-go-tun2socks/build/ios/Tun2socks.xcframework failed: exit status 70
error: cannot compute path of binary 'Path(str: "/private/var/folders/36/m2hq2hc910v6b_q2q82vsrrr0000gn/T/gomobile-work-3566289854/ios/iphoneos/Tun2socks.framework/Versions/A/Tun2socks")' relative to that of '/var/folders/36/m2hq2hc910v6b_q2q82vsrrr0000gn/T/gomobile-work-3566289854/ios/iphoneos/Tun2socks.framework'

make: *** [/Users/user/Files/outline-go-tun2socks/build/ios/Tun2socks.xcframework] Error 1
daniellacosse commented 1 year ago

Hey! Thanks for reaching out. We're currently in the process of moving our client to Mac Catalyst, so this target will soon be outmoded. Additionally, I'm working on migrating this repository to the client one, which you can follow in this PR.