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: gomobile: -target=ios requires XCode #26348

Closed
daiyangyang945 opened this issue Jul 12, 2018 · 2 comments
Closed

x/mobile: gomobile: -target=ios requires XCode #26348

daiyangyang945 opened this issue Jul 12, 2018 · 2 comments
Labels
FrozenDueToAge mobile Android, iOS, and x/mobile
Milestone

Comments

@daiyangyang945
Copy link

Please answer these questions before submitting your issue. Thanks!

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

1.10.3

Does this issue reproduce with the latest release?

YES

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

GOARCH="amd64"
GOBIN="/usr/local/Cellar/go/1.10.3/bin"
GOCACHE="/Users/sweet/Library/Caches/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/sweet/go"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.10.3/libexec"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.10.3/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
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/hz/c90vc4k91n99vfw18dj38pp80000gn/T/go-build658100496=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

gomobile bind -target=ios -o Ethereum.framework go-ethereum

What did you expect to see?

Ethereum.framework

What did you see instead?

gomobile: -target=ios requires XCode

I have installed Xcode and Xcode command Line tools,but it still not work.

@gopherbot gopherbot added this to the Unreleased milestone Jul 12, 2018
@gopherbot gopherbot added the mobile Android, iOS, and x/mobile label Jul 12, 2018
@daiyangyang945
Copy link
Author

I solve it.
I use sudo Xcode-select --switch /Applications/Xcode.app/Contents/Developer/ to reset Xcode path.

@ianlancetaylor
Copy link
Contributor

Closing.

@golang golang locked and limited conversation to collaborators Jul 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge mobile Android, iOS, and x/mobile
Projects
None yet
Development

No branches or pull requests

3 participants