Posts

Post not yet marked as solved
5 Replies
1.8k Views
Made a separate target for App Intents, but I don't get it to work. The intent is shown in the Shortcuts app when registered using AppShortcutsProvider. But upon running the intent it gives this error: Error Domain=LNActionFor- AutoShortcutPhraseFetchError Code=1 "No AutoShortcuts instance registered." UserInfo={NSLocalizedDescription=No AutoShortcuts instance registered.} I've attached a sample project to my FA-post FB10199299
Posted
by JagCesar.
Last updated
.
Post not yet marked as solved
0 Replies
645 Views
In iOS 15, macOS 12, tvOS 15 and watchOS 8 we can finally share NSManagedObjects using NSPersistentCloudKitContainer 🎉 I've been playing around with it and I've managed to share an object from one Apple ID to another. But I'm unable to accept the invite. 😰 If I understand the docs correctly I'm supposed to call func acceptShareInvitations(…) with CKShare.Metadata representing the invite. This metadata should be forwarded to my app using either AppDelegate or SceneDelegate. The problem is that I'm using the SwiftUI App-protocol. I tried setting up an UIApplicationDelegateAdaptor with this code: ivar added @UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate AppDelegate implemented class AppDelegate: NSObject, UIApplicationDelegate {     func application(_ application: UIApplication, userDidAcceptCloudKitShareWith cloudKitShareMetadata: CKShare.Metadata) {         assertionFailure()     } } The assertionFailure is never called, so my guess is that the SceneDelegate is being called instead. So, how do I implement the following two SceneDelegate-calls in an app that uses the SwiftUI App lifecycle? func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {         assertionFailure()     } func windowScene(_ windowScene: UIWindowScene, userDidAcceptCloudKitShareWith cloudKitShareMetadata: CKShare.Metadata) {         assertionFailure()     }
Posted
by JagCesar.
Last updated
.
Post marked as solved
1 Replies
486 Views
I'm trying out the new widgets introduced with iOS 14 and it seems it doesn't support having a static framework as a dependency. I have a static framework with a bunch of shared classes that I use in all my targets. Is this a bug or a feature? 😅
Posted
by JagCesar.
Last updated
.
Post not yet marked as solved
4 Replies
1.2k Views
I've implemented Sign in with Apple in my app and it works great on iOS. But when I compile the same project for macOS using UIKit for Mac Sign in with Apple no longer works.Is there some limitation I've missed? If so, what's the proper way to fix it?
Posted
by JagCesar.
Last updated
.