WCSession.default.updateApplicationContext(...)
has been working for me for quite some time. But after just updating to Xcode 12.5 it now seems to be broken (again) :(((
Post
Replies
Boosts
Views
Activity
I'm seeing the same error - Unable to present. Please file a bug.
My setup is that I have a ParentView that has a NavigationLink that leads to ChildView. On the ChildView, I have a @StateObject view-model. And whenever something in ChildView changes and causes things to be rebuilt (repainted) in ParentView, I get this message Unable to present. Please file a bug.
My intuition tells me that at that moment, ChildView gets rebuilt as well, only keeping the @StateObject, and it does not properly get presented.
But I'm curious to find out what the "real" explanation and a possible solution is.
"Solved it" by going back to Xcode 12.5.1 for the moment.
What works quite well for me is using the Contacts app - storing the deeplink under a specific contact's URL (i.e. Contacts > John Appleseed > Edit > add url > type url > done > tap url)
This has been fixed in CocoaPods - https://github.com/CocoaPods/CocoaPods/pull/12009 - but not yet released. It should appear in the 1.13.0 version.
You can point to the latest CocoaPods version in your Gemfile until then.
For us, it was the missing entries in Info.plist. Make sure to add the new entries
NSCalendarsWriteOnlyAccessUsageDescription and/or
NSCalendarsFullAccessUsageDescription.
Also, keep in mind, that if you're still supporting older iOS versions (lower than 17), you should also include the NSCalendarsUsageDescription.