You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All good and fine, except it seems like there is some race-condition inherent between the creation of the binary, and running it, and sometimes the binary would fail to launch properly, and UIKit would throw an error.
And could no longer reproduce it if I inserted a sleep 2s, either in my code or on the command line.
A bunch of rabbit holes later, I ended up finding all the winit.apps that existed on my system by running open -a winit (I had copied a few of them around), and deleting them; and suddenly everything worked fine again.
So it seems like there's something something launchctl something that keeps track of all application bundles, and that's having trouble with the bundle produced by cargo-bundle?
Idk., posting it here in case I hit the same issue again in a year.
The text was updated successfully, but these errors were encountered:
So, this is a bit of a weird one.
I'm using
cargo-bundle
to launch the Winit examples on Mac Catalyst.The command I use is:
cargo +nightly bundle --format=ios --target=aarch64-apple-ios-macabi --example=window
And then I run the binary with:
./target/aarch64-apple-ios-macabi/debug/examples/bundle/ios/winit.app/window
All good and fine, except it seems like there is some race-condition inherent between the creation of the binary, and running it, and sometimes the binary would fail to launch properly, and UIKit would throw an error.
I could reproduce it consistently with:
And could no longer reproduce it if I inserted a
sleep 2s
, either in my code or on the command line.A bunch of rabbit holes later, I ended up finding all the
winit.app
s that existed on my system by runningopen -a winit
(I had copied a few of them around), and deleting them; and suddenly everything worked fine again.So it seems like there's something something launchctl something that keeps track of all application bundles, and that's having trouble with the bundle produced by
cargo-bundle
?Idk., posting it here in case I hit the same issue again in a year.
The text was updated successfully, but these errors were encountered: