When attempting to build a Multiplatform App, for example, the WWDC21 Fruta App, and attempting to add the @UIApplicationDelegateAdapter, there is an error:
"UIKit is not available when building for macOS. Consider using #if !os(macOS) to conditionally import this framework."
However, this is required in order to add remote notifications, among other features. What do we do to add UI Kit and the necessary UIApplicationDelegateAdapter in a Multiplatform app?
Post
Replies
Boosts
Views
Activity
Thank you for the timely answer. I just filed a bug, but I suppose since it's well-known, I should close it. FYI: FB9218851
I've run into a similar situation as you're describing. However, I am unclear how it was resolved based on your description. Would it be possible for you to share your UIViewControllerRepresentable?
Thanks!
Would it be “bad” to have all users use a single Apple ID as a service to add CloudKit records for unauthenticated users? It would be nice if there existed a way to use other auth providers, such as private/public key pair, passwordless auth, like the shiny demo from WWDC 21. This is a must for apps leveraging all of the amazing things that CloudKit has to offer. Filing a suggestion now.
Yes, please do let us know when the app is available from the WWDC 2023 videos. This will save us a lot of time poking around in the few snippets from the video. Thank you!
Never mind. I had to make the view public from the framework for it to be visible.
Yep.