Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
x/mobile: Building the framework for OSX #13310
I would like to put together a script that compiles both frameworks at once. Is such a thing possible using just
I believe an OS X framework can be dynamically loaded, which is different from iOS and not yet supported. So what the gomobile tool is doing will not generate a framework for OS X.
@hyangah reminded me today that in its current state, gobind can be used on OS X. But you have to statically link the generated code into your C program. You can try building a .a file with go build -buildmode=c-archive. Have a read through https://github.com/golang/mobile/blob/master/bind/objc/test.bash.
With that simple commit https://github.com/bclermont/mobile/commit/27e1b66f2aabbd2abe32bd8cf7e316cb9f9f9371
I switched from iPhone simulator to OSX to build a
Using https://github.com/bclermont/mobile/commit/27e1b66f2aabbd2abe32bd8cf7e316cb9f9f9371#commitcomment-16297002 I could remove the iOS binary.
@crawshaw I think it's a simple change that could add to