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

App Crash on IOS Simulator #4828

Open
2 tasks done
BHLabsLtd opened this issue May 3, 2024 · 5 comments
Open
2 tasks done

App Crash on IOS Simulator #4828

BHLabsLtd opened this issue May 3, 2024 · 5 comments
Assignees
Labels
Bounty Tickets with this label rewards core contributors for completion bug Something isn't working

Comments

@BHLabsLtd
Copy link

Checklist

  • I have searched the issue tracker for open issues that relate to the same problem, before opening a new one.
  • This issue only relates to a single bug. I will open new issues for any other problems.

Describe the bug

When running any fyne app in IOS / Android Simulator the app immediately closes after a quick black screen.

Fyne hello world code in main.go also testing with base64 app from app page.

the console log from running the app. Not sure what it means..

app error.txt

How to reproduce

git clone https://github.com/able8/base64-encoder-decoder

Manually update go.mod to version v2.4.5

go mod tody
go build
./base64-encoder-decoder
go build and app works fine on Mac OS.

now build for IOS simulator

fyne package
fyne package -os iossimulator -appID com.github.able8.base64-encoder-decoder

go mobile
gomobile build -v -target=ios -bundleid com.github.able8.base64-encoder-decoder

tried xcrun instead of dragging ...
xcrun simctl install booted Base64-Encoder-Decoder.app

same issue with android simulator
fyne package -os android -appID com.github.able8.base64-encoder-decoder

tried adb instead of dragging...
adb install Base64-Encoder-Decoder.apk

Screenshots

No response

Example code

package main

import (
	"fyne.io/fyne/v2/app"
	"fyne.io/fyne/v2/container"
	"fyne.io/fyne/v2/widget"
)

func main() {
	a := app.New()
	w := a.NewWindow("Hello")

	hello := widget.NewLabel("Hello Fyne!")
	w.SetContent(container.NewVBox(
		hello,
		widget.NewButton("Hi!", func() {
			hello.SetText("Welcome :)")
		}),
	))

	w.ShowAndRun()
}

Fyne version

2.4.5

Go compiler version

1.22.2

Operating system and version

Sonoma 14.4.1

Additional Information

Testing on Apple M3 Pro
Sonoma 14.4.1
Go 1.22.2
gcc clang 15.0.0
Fyne 2.4.5 (app and code)

@BHLabsLtd BHLabsLtd added the unverified A bug that has been reported but not verified label May 3, 2024
@andydotxyz
Copy link
Member

There is a known issue with the latest iossimulator that we are working on.

However there is no known issue with the Android emulator. Please provide the crash log for running Fyne's demo app on your emulator.

@BHLabsLtd
Copy link
Author

Hi @andydotxyz
I've tested the exact same as above on an Intel I9 Mac and it runs fine with the latest iossimulator.
Do you have an ETA on when the issue will be fixed or anywhere i can look to help out?

Apologies I've just retested the demo app in Android and it is working. so it's just the IOS Simulator that's failing.

@andydotxyz
Copy link
Member

Do you have an ETA on when the issue will be fixed or anywhere i can look to help out?

No, we can't really estimate such things until we understand them.
The issue appears to be with the latest XCode tools on the Apple Silicon which causes no end of problems.
Probably some mismatch on binaries or boot sequence but unless you can track down some error logged that we've not found it's basically trial and error or speaking to an Apple engineer...

Maybe the gomobile project has encountered and solved this already?

@RiRa12621
Copy link

Seeing the same.

code:

package main

import (
	"fyne.io/fyne/v2/app"
	"fyne.io/fyne/v2/widget"
)

func main() {
	a := app.New()
	w := a.NewWindow("Hello World")

	w.SetContent(widget.NewLabel("Hello World!"))
	w.ShowAndRun()
}

build and run:

fyne package -os iossimulator -appID com.example.myapp -icon resources/_gen/images/ios_store_icon.png && xcrun simctl install booted fyniere.app

App installs fine, if I tap it, it opens and insta-crashes.

Crash report attached:

main-2024-05-23-232233.ips.zip

@andydotxyz
Copy link
Member

andydotxyz commented May 24, 2024

Adding a bounty of £250 as we need to get this figured out...

@andydotxyz andydotxyz added bug Something isn't working Bounty Tickets with this label rewards core contributors for completion and removed unverified A bug that has been reported but not verified labels May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bounty Tickets with this label rewards core contributors for completion bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants