Jigsaw-Code / outline-go-tun2socks

Apache License 2.0
224 stars 94 forks source link

Build xcframework for Apple #85

Closed fortuna closed 2 years ago

fortuna commented 2 years ago

This is a dependency to support the simulator.

I'm creating a xcframework that works across Apple platforms. I had to upgrade the Go and gomobile versions to get the xcframework support.

I was able to validate the Apple framework. It seems Linux and Windows break with the Go change. XGO is a pain, we need aa better way to do the cross-compilation. @bemasc I think you'll know better how to do that.

/cc @jyyi1 @daniellacosse

alalamav commented 2 years ago

The plist is needed for any bundle (app, static library, or framework). In fact, you may need to declare that the target is a framework in the plist file.

fortuna commented 2 years ago

I was able to validate the Tun2socks.xcframework, so I believe this is ready for review. Windows and Linux are currently broken. XGO is a pain (GBs of Docker image) and I'm not sure how to make the cross-compilation work yet, but I'm willing to punt on it for now.