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: gomobile bind fails with "invalid flag in #cgo CFLAGS: -fmodules" for target=ios #23742
What version of Go are you using (
For anyone else that hits this, there's a workaround in the meantime:
I didn't see anything in the 1.9 or 1.9.4 release notes, but the cgo docs were updated: https://golang.org/cmd/cgo/#hdr-Using_cgo_with_the_go_command.