Replies: 1 comment 1 reply
-
@beetee17 Thanks for the report! Are you able to open a PR with your fix and a test? I'd be happy to run it for you on Sequoia to check it. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I've been using the default live implementation of
openURL
in a TCA production app, and have received multiple crash reports from users that point to an issue withopenURL
when calling it from an effect like so:.run { _ in await openURL(...) }
.It seems that the code is not running on the
MainActor
, even though theTask
is marked@MainActor
, causing a dispatch queue assertion failure. Weirdly, this assertion is not triggered on my machine that runs macOS Sonoma.The crash reports are of the following format:
I was able to create and test a fix for this crash by overriding the dependency with an implementation of
openURL
that marks the outermost closure as@MainActor
:Dependencies version information
1.4.1
Destination operating system
macOS Sequoia 15.0
Xcode version information
XCode 16.0
Swift Compiler version information
6.0
P.S. Did not want to open an issue as it is hard for me to test on macOS Sequoia, so I could not do many checks.
Beta Was this translation helpful? Give feedback.
All reactions