Skip to content

x/mobile/cmd/gomobile: iOS app built with gomobile-build fails to run on simulators #25148

Closed
@hajimehoshi

Description

@hajimehoshi

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

go version go1.10 darwin/amd64

Does this issue reproduce with the latest release?

Yes

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

GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/hajimehoshi/Library/Caches/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/hajimehoshi/go"
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/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/7t/qw3np69559591s1v0mk5_p1m0000gn/T/go-build916245002=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

  1. Run gomobile build -target=ios -bundleid=com.hajimehoshi.gomobiletest -work golang.org/x/mobile/example/basic
  2. Open the generated main.xcodeproj
  3. Run it on any emulators

What did you expect to see?

The app runs on the emulator

What did you see instead?

SIGABRT

dyld`__abort_with_payload:
    0x58101e0 <+0>:  movl   $0x2000209, %eax          ; imm = 0x2000209 
    0x58101e5 <+5>:  movq   %rcx, %r10
    0x58101e8 <+8>:  syscall 
->  0x58101ea <+10>: jae    0x58101f4                 ; <+20>
    0x58101ec <+12>: movq   %rax, %rdi
    0x58101ef <+15>: jmp    0x580fa48                 ; cerror_nocancel
    0x58101f4 <+20>: retq   
    0x58101f5 <+21>: nop    
    0x58101f6 <+22>: nop    
    0x58101f7 <+23>: nop   

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions