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: debug symbol for gomobile bind works if running on iOS simulator, but not on actual phone #25704

Closed
biscottigelato opened this issue Jun 2, 2018 · 4 comments
Labels
FrozenDueToAge mobile Android, iOS, and x/mobile WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Milestone

Comments

@biscottigelato
Copy link

biscottigelato commented Jun 2, 2018

Please answer these questions before submitting your issue. Thanks!

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

Tried both of the following:
go version devel +3363e98371 Mon Apr 23 16:00:55 2018 +0000 darwin/amd64
go version devel +161874da2a Fri Jun 1 21:52:00 2018 +0000 darwin/amd64

Does this issue reproduce with the latest release?

No, latest release 1.10.2 does not have DWARF enabled for darwin/arm64

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

GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/biscottigelato/Library/Caches/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/biscottigelato/gocode"
GORACE=""
GOROOT="/usr/local/opt/go/libexec"
GOTMPDIR=""
GOTOOLDIR="/usr/local/opt/go/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/_6/47d5qynn28j8334nlr23wmnh0000gn/T/go-build592797820=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

$ gomobile bind -target=ios -v -o ios/hello.framework golang.org/x/mobile/example/bind/hello

What did you expect to see?

What did you see instead?

DWARF symbol for the framework built using gomobile works if running on an iOS simulator, but not on an actual phone. Is there any possible solutions here?

screen shot 2018-06-02 at 01 32 49

screen shot 2018-06-02 at 01 33 13

@biscottigelato biscottigelato changed the title DWARF symbol for the framework built using gomobile works if running on an iOS simulator, but not on an actual phone Symbol for the framework built via gomobile works if running on iOS simulator, but not on actual phone Jun 2, 2018
@biscottigelato biscottigelato changed the title Symbol for the framework built via gomobile works if running on iOS simulator, but not on actual phone x/mobile: debug symbol for gomobile bind works if running on iOS simulator, but not on actual phone Jun 2, 2018
@gopherbot gopherbot added this to the Unreleased milestone Jun 2, 2018
@gopherbot gopherbot added the mobile Android, iOS, and x/mobile label Jun 2, 2018
@phpmaple
Copy link

Can gomobile generate CocoaTouch dynamic framework? default static framework, maybe it conflicts with other static libs

@agnivade
Copy link
Contributor

@steeve @hyangah

@steeve
Copy link
Contributor

steeve commented Jul 10, 2019

Try with 1.12.7, there were a lot of fixes done in the last year on DWARF.

@agnivade agnivade added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Jul 10, 2019
@gopherbot
Copy link

Timed out in state WaitingForInfo. Closing.

(I am just a bot, though. Please speak up if this is a mistake or you have the requested information.)

@golang golang locked and limited conversation to collaborators Aug 9, 2020
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 WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

5 participants