-
Notifications
You must be signed in to change notification settings - Fork 18k
x/mobile/cmd/gomobile: iOS app built with gomobile-build fails to run on simulators #25148
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
Labels
Milestone
Comments
CC @eliasnaur |
Change https://golang.org/cl/110059 mentions this issue: |
Change https://golang.org/cl/111275 mentions this issue: |
gopherbot
pushed a commit
that referenced
this issue
May 4, 2018
The macOS and iOS external linker strips DWARF information from binaries because it assumes the information will go into separate DWARF information .dSYM files. To preserve the embedded debugging information, the Go linker re-combines the separate DWARF information into the unmapped __DWARF segment of the final executable. However, the iOS dyld linker does not allow unmapped segments, so use the presence of the LC_VERSION_MIN_IPHONEOS linker command to skip DWARF combining. Note that we can't use GOARCH for detection since the iOS emulator runs on GOARCH=386 and GOARCH=amd64 and we will run into https://golang.org/issues/25148. Updates #25148. Change-Id: I29a1bc468fdee74ab3b27c46931501a0a8120c66 Reviewed-on: https://go-review.googlesource.com/111275 Run-TryBot: Elias Naur <elias.naur@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Cherry Zhang <cherryyz@google.com>
imWildCat
pushed a commit
to imWildCat/go-mobile
that referenced
this issue
Apr 10, 2021
DWARF doesn't work for buildmode exe binaries; see golang.org/issues/25148. Fixes golang/go#25148. Change-Id: I511599f3d1963ff0b3e48ac5c8cce50ee6aa54de Reviewed-on: https://go-review.googlesource.com/110059 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
imWildCat
pushed a commit
to imWildCat/go-mobile
that referenced
this issue
Apr 11, 2021
DWARF doesn't work for buildmode exe binaries; see golang.org/issues/25148. Fixes golang/go#25148. Change-Id: I511599f3d1963ff0b3e48ac5c8cce50ee6aa54de Reviewed-on: https://go-review.googlesource.com/110059 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?What did you do?
gomobile build -target=ios -bundleid=com.hajimehoshi.gomobiletest -work golang.org/x/mobile/example/basic
main.xcodeproj
What did you expect to see?
The app runs on the emulator
What did you see instead?
SIGABRT
The text was updated successfully, but these errors were encountered: