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: bind example does not work under xcode 11 GM #34312

Open
clsx524 opened this issue Sep 16, 2019 · 2 comments
Open

x/mobile: bind example does not work under xcode 11 GM #34312

clsx524 opened this issue Sep 16, 2019 · 2 comments
Labels
mobile Android, iOS, and x/mobile NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@clsx524
Copy link

clsx524 commented Sep 16, 2019

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

$ go version
go version go1.13 darwin/amd64

Does this issue reproduce with the latest release?

Yes.

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

go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/user/Library/Caches/go-build"
GOENV="/Users/user/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/user/gocode"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/Cellar/go/1.13/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.13/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/user/gocode/src/golang.org/x/mobile/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/mj/vc775djd4p73ftqvkrphl01m0000gn/T/go-build395480379=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

checked out the go mobile repo (follow instructions https://github.com/golang/go/wiki/Mobile) and opened it in xcode 11 and built.
verified Hello.framework exists in "Framework, Libraries and Embeded contents" and also listed in "Link Binary with Libraries".

What did you expect to see?

able to build and run the package.

What did you see instead?

"Module 'Hello' not found" in ViewController.m

@clsx524 clsx524 changed the title bind example does not work under xcode 11 GM mobile bind example does not work under xcode 11 GM Sep 16, 2019
@ALTree ALTree changed the title mobile bind example does not work under xcode 11 GM x/mobile: bind example does not work under xcode 11 GM Sep 16, 2019
@gopherbot gopherbot added this to the Unreleased milestone Sep 16, 2019
@gopherbot gopherbot added the mobile Android, iOS, and x/mobile label Sep 16, 2019
@ALTree ALTree added NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. and removed mobile Android, iOS, and x/mobile labels Sep 16, 2019
@gopherbot gopherbot added the mobile Android, iOS, and x/mobile label Sep 16, 2019
@pontusntengnas
Copy link

I believe I experience the same issue. No matter what i bind, the framework is "not found" by Xcode. Even though there is an actual framework produced as output by gomobile bind.

@pwallrich
Copy link

Had the same issue, if you don't copy the framework into your projects directory, you should add the main directory to the framework search paths of the target. I've added an explanation to https://github.com/golang/go/wiki/Mobile as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mobile Android, iOS, and x/mobile NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

5 participants