Skip to content

x/mobile: Basic app does not work on iOS simulator&macos #68726

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

Closed
MihoSasaki opened this issue Aug 4, 2024 · 2 comments
Closed

x/mobile: Basic app does not work on iOS simulator&macos #68726

MihoSasaki opened this issue Aug 4, 2024 · 2 comments
Labels
mobile Android, iOS, and x/mobile
Milestone

Comments

@MihoSasaki
Copy link

Go version

go version go1.22.3 darwin/arm64

Output of go env in your module/workspace:

GO111MODULE=''
GOARCH='arm64'
GOBIN=''
GOCACHE='/Users/miho.sasaki/Library/Caches/go-build'
GOENV='/Users/miho.sasaki/Library/Application Support/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='arm64'
GOHOSTOS='darwin'
GOINSECURE=''
GOMODCACHE='/Users/miho.sasaki/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='darwin'
GOPATH='/Users/miho.sasaki/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/darwin_arm64'
GOVCS=''
GOVERSION='go1.22.3'
GCCGO='gccgo'
AR='ar'
CC='clang'
CXX='clang++'
CGO_ENABLED='1'
GOMOD='my-working-directory/go.mod'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/3w/wwx16f7s1sdbg17k_tnjzw9h0000gp/T/go-build512292993=/tmp/go-build -gno-record-gcc-switches -fno-common'

What did you do?

mobile go version is the latest

For iOS

Following this instruction

  • executed command
gomobile build -target=ios -bundleid=org.golang.gomobiletest \
-o=basic.app golang.org/x/mobile/example/basic
  • drag&drop to the iOS simulator
iOS simulator version
- iPhone 13(iOS 17.5)
- iPhone 15(iOS 17.5)
  • open the app then it closes without any log

I also tried with -iosversion=15 but it also didn't work.

For macOS

  • env
macOS: Sonoma 14.3.1
  • executed command
gomobile build -target=macos -bundleid=org.golang.gomobiletest \
-o=basic.app golang.org/x/mobile/example/basic
  • open the app
  • this error is shown
Screenshot 2024-08-04 at 22 16 00

What did you see happen?

As the described above,

  • For the iOS app, the app closes without any error.
  • For the macOS app, the app shows the error that it cannot be opened.

What did you expect to see?

The app is opening without any issue.

@gopherbot gopherbot added the mobile Android, iOS, and x/mobile label Aug 4, 2024
@gopherbot gopherbot added this to the Unreleased milestone Aug 4, 2024
@seankhliao
Copy link
Member

there's a dedicated target for the simulator

Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.

For questions please refer to https://github.com/golang/go/wiki/Questions

@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Aug 4, 2024
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
Projects
None yet
Development

No branches or pull requests

4 participants