Post #1605005
2026-04-10 19:38 UTC
@Alexjusino the docs for WCSessionDelegate are very clear: this type will invoke its methods in the background. But your type is main thread only. That is why there is a conflict. You cannot do both of these.
Replies (1)
-
@mattiem@mastodon.social 2026-04-10 19:43
@Alexjusino more protocols means more problems. You are conforming to many on one type, and that's making your life harder here. I *think* that if you can break this down into a few different types it will be easier. But because you default MainActor on, you may also need to understand the conditions that require you explicitly use `nonisolated`. Many people struggle with that, which is why this mode is hard to use.