Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/mobile: reverse bindings for iOS "invalid source position: <scratch" #19086

Closed
cmanus opened this issue Feb 14, 2017 · 5 comments

Comments

Projects
None yet
4 participants
@cmanus
Copy link

commented Feb 14, 2017

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

go version go1.7.5 darwin/amd64

gomobile version +60b0aaa Tue Jan 31 20:25:16 2017 +0000 (android,ios)

What operating system and processor architecture are you using (go env)?

GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/cmanus/code"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/hg/0q7ssn096673q40j5__9lvr40000gp/T/go-build466990415=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"

What did you do?

Ran gomobile bind -target ios

Directory contains single file see gist
https://gist.github.com/cmanus/fbd91968eddaf660db02acfb62d545e3

What did you expect to see?

Sucessful creation of the ios Framework

What did you see instead?

gomobile: Foundation: invalid source position: "<scratch"

mentioning @eliasnaur

@eliasnaur eliasnaur self-assigned this Feb 14, 2017

@cmanus

This comment has been minimized.

Copy link
Author

commented Feb 16, 2017

@eliasnaur Let me know if there is anything I can do to help with this. I'm working on getting set up to be a contributor.

@eliasnaur

This comment has been minimized.

Copy link
Contributor

commented Feb 21, 2017

I failed to reproduce this. I put the content of your gist into $GOPATH/src/gomobile19086/goreverse.go and ran gomobile bind -target ios from the $GOPATH/src/gomobile19086 directory, which resulted in a Goreverse.framework. I'm running macOS 10.11.6 with Xcode 8.0.

Please try go get -u golang.org/x/mobile/... and then go install golang.org/x/mobile/cmd/... before trying again. If possible, try Go 1.8 as well. Thank you.

@cmanus

This comment has been minimized.

Copy link
Author

commented Feb 21, 2017

@quentinmit quentinmit changed the title #gomobile reverse bindings for iOS "invalid source position: <scratch" x/mobile: reverse bindings for iOS "invalid source position: <scratch" Feb 27, 2017

@quentinmit quentinmit added this to the Unreleased milestone Feb 27, 2017

@cmanus

This comment has been minimized.

Copy link
Author

commented Mar 24, 2017

Still occurs after an update to Go version 1.8 on OS X 10.11.5

@cmanus

This comment has been minimized.

Copy link
Author

commented Mar 24, 2017

@eliasnaur After updating to sierra and Xcode 8.2.1 this error is gone.

@cmanus cmanus closed this Mar 24, 2017

@golang golang locked and limited conversation to collaborators Mar 24, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.