Please answer these questions before submitting your issue. Thanks!
go version)?go1.8 darwin/amd64
go env)?GOARCH="amd64"
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
Built and used a go program into a go mobile dynamic framework. LLDB crashes on the Mac simulator but runs fine on device.
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
LLDB to not crash.
LLDB crashing. Crash log is attached.
CrashLogs.zip
/cc @eliasnaur
I've never used LLDB on macOS, so could you please give me a step-by-step guide to how to reproduce the problem. Please include any source code I'll need as well.
Also, what macOS and Xcode version are you using?

@eliasnaur so this is the standard debugger for Xcode and iOS. I've attached a sample Xcode project, the Go mobile framework and the corresponding Go source code.
All you have to do is build the project, let it run for a few seconds and watch the crash occur on the console in Xcode.
git.clinicloud.com.zip
The project is rather large because of the framework. I've uploaded to this link -
https://appbryo-my.sharepoint.com/personal/hon_clinicloud_com/_layouts/15/guestaccess.aspx?docid=0819c0001cb5c4964bf5d8586dd1b2a27&authkey=AchwSlqH-kVixXPxvI7l9PY
Thanks!
We have the same issue by just following the wiki
https://github.com/golang/go/wiki/Mobile#sdk-applications-and-generating-bindings with the HelloGreetings example
It seems to work on Xcode 8.2.1 on OS X 10.11.6 but it doesn't on Xcode 8.3.1 on macOS Sierra
I'm currently working around this by disabling the goroutines plugin (which causes the crash) in lldb by adding
settings set plugin.os.goroutines.enable false
to my ~/.lldbinit
I've just now tried the golang.org/x/mobile/example/bind/ios example using Xcode 8.3.2 with both Go tip and Go 1.8.1. Both versions worked for me with no crashes even after several minutes of running the project through Xcode. Could you retry with Go 1.8.1 and see if your error persists?
I'm able to reproduce with go 1.8.1 and xcode 8.3.2. The error occurs when the debugger hits a breakpoint in xcode.
Ok, setting a breakpoint provokes the debugger crash for me as well, thanks. However, I don't have time to dig deeper into this hairy issue, so any help fixing or pinpointing the problem will be appreciated a lot.
Sorry, I'm not very familiar with this system. The error in xcode console directs you to the crash logs at ~Library/Logs/DiagnosticReports/lldb-rpc-server*
Same problem with xcode 8.3.3. But 8.2.x and before is ok.
Sometimes there are errors with " linked wrong...".
If I add my Go test xxx.framework and UI button click event, can just run, but no click event nslog happened.
Any update on fixing this?
Same problem with xcode 8.3.3.
I don't think we can do much on our side other than using the workaround from https://github.com/golang/go/issues/19846#issuecomment-292976426 . FWIW, I've reported the crash to Apple, and they marked my bug as a duplicate.
https://github.com/golang/go/issues/19846#issuecomment-292976426 worked for me ✨👍
The workaround is no longer necessary for me on Xcode 9.
Most helpful comment
I'm currently working around this by disabling the goroutines plugin (which causes the crash) in lldb by adding
settings set plugin.os.goroutines.enable falseto my ~/.lldbinit