Post

Replies

Boosts

Views

Activity

Reply to NSCloudKitMirroringExportRequest issues
I'm having this issue as well. I've ensured CD_entityName indexes are a part of each object in the cloudkit console. I've submitted feedback, but has anyone resolved this? Sync works when I initially install the app on both my devices, but if I remove the app from one and reinstall the error occurs during the syncing process.
Dec ’22
Reply to Multiple commands produce.
I had this issue. I was trying to add two widgets to my project and realized that the intents (for the widget target they are named ConfigurationIntent) needed to have different names for each of the targets. Open the Intents file for the target, change the name, then change the name in the project itself, wherever ConfigurationIntent is in the file, replace with your new name. If the Custom name you choose were Today, the name to use in your project is TodayIntent(). IntentConfiguration(kind: kind, intent: TodayIntent.self, provider: Provider()) { entry in             TodayWidgetView(entry: entry)         }
Jan ’22
Reply to Core Data + CloudKit - I need to get FetchRequest's data into my Model
Here is what I did to get it working, although it isn't what I wanted it does work, in case anyone else is attempting to pull from cloudkit+core data public db and has run into issues with the initial, on-launch, fetch -- This is how I got FetchRequest in SwiftUI working with my need to do additional things with those items as they are pulled into the app. In body of the main view, I call my model when the NavigationItem is being created, and ask it to finish setup for the current item.                         NavigationLink(destination: ItemDetailView(detailViewModel: ItemDetailViewModel(item: item, pairedFavorite: self.itemModel.pairedFavoriteForItem(cloudItem: Item), manager: self.itemModel))) { Text(item.name) And in the model, I have this method var fetchedAlreadyFavoritesReturnedEntities: Bool?     func pairedFavoriteForItem(cloudItem: Item) -> FavoriteItem {                  if allItems.contains(s) == false {             self.allItems.append(cloudItem)         }         if self.fetchedAlreadyFavoritesReturnedEntities == nil && self.allFavoriteItemObjects.isEmpty == true {             let request = NSFetchRequest<FavoriteItem>(entityName: "FavoriteItem")                                       request.sortDescriptors  = [NSSortDescriptor(key: "favoritedState", ascending: true)]             let favoriteRequestFRC =  NSFetchedResultsController(fetchRequest: request,                                                                  managedObjectContext: self.localManagedObjectContext,                                                                  sectionNameKeyPath: nil,                                                                  cacheName: nil)             favoriteRequestFRC.delegate = self             try? favoriteRequestFRC.performFetch()             let fetched: [FavoriteItem]? = favoriteRequestFRC.fetchedObjects                          if let f = fetched {                 self.allFavoriteItemObjects = Set<FavoriteItem>(f)             }             self.fetchedAlreadyFavoritesReturnedEntities = true         }         let results = self.allFavoriteItemObjects.filter {             return ($0.matchingItemUUID!.uuidString == cloudItem.uuid!.uuidString)         }         if results.isEmpty == false {             if let fave: FavoriteItem = results.first {                 s.isFavorite = fave.favoritedState             }             return results.first!         }         else {                         let newFavorite = self.makeFavoriteWithItem(cloudItem)                         self.allFavoriteItemObjects.insert(newFavorite)                                                  return newFavorite         }     }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’21
Reply to Document Type Export / Import in Xcode - Shared via Messages
Never mind, I was able to fix the issue. My share extension didn‘t have the right type specification, once I fixed that, Messages started showing the Share button in the Preview view.
Replies
Boosts
Views
Activity
Feb ’26
Reply to Instruments Crash using swiftui instrument
Sure thing, this is my feedback #: FB21366074 Thanks for taking a look!
Replies
Boosts
Views
Activity
Dec ’25
Reply to Adding User to App Store Connect, User asked to create new Apple Account despite email matching existing Account
I'm experiencing this issue as well. Exact same circumstances as described.
Replies
Boosts
Views
Activity
Jul ’25
Reply to Sheet + keyboard toolbar (18.3) - is anyone else still encountering this issue?
Hi, I've also tried fullscreenCover to make this work, but it also fails to present the keyboard toolbar -- I just can't replicate the bug in a demo project yet. My feedback ID is FB16428876
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’25
Reply to NSPersistentCloudKitContainer - Import failed because applying the accumulated changes hit an unhandled exception
I'm still getting this error. Not sure how to fix, but I submitted a bug report.
Replies
Boosts
Views
Activity
Dec ’22
Reply to NSCloudKitMirroringExportRequest issues
I'm having this issue as well. I've ensured CD_entityName indexes are a part of each object in the cloudkit console. I've submitted feedback, but has anyone resolved this? Sync works when I initially install the app on both my devices, but if I remove the app from one and reinstall the error occurs during the syncing process.
Replies
Boosts
Views
Activity
Dec ’22
Reply to Multiple commands produce.
I had this issue. I was trying to add two widgets to my project and realized that the intents (for the widget target they are named ConfigurationIntent) needed to have different names for each of the targets. Open the Intents file for the target, change the name, then change the name in the project itself, wherever ConfigurationIntent is in the file, replace with your new name. If the Custom name you choose were Today, the name to use in your project is TodayIntent(). IntentConfiguration(kind: kind, intent: TodayIntent.self, provider: Provider()) { entry in             TodayWidgetView(entry: entry)         }
Replies
Boosts
Views
Activity
Jan ’22
Reply to Core Data + CloudKit - I need to get FetchRequest's data into my Model
Here is what I did to get it working, although it isn't what I wanted it does work, in case anyone else is attempting to pull from cloudkit+core data public db and has run into issues with the initial, on-launch, fetch -- This is how I got FetchRequest in SwiftUI working with my need to do additional things with those items as they are pulled into the app. In body of the main view, I call my model when the NavigationItem is being created, and ask it to finish setup for the current item.                         NavigationLink(destination: ItemDetailView(detailViewModel: ItemDetailViewModel(item: item, pairedFavorite: self.itemModel.pairedFavoriteForItem(cloudItem: Item), manager: self.itemModel))) { Text(item.name) And in the model, I have this method var fetchedAlreadyFavoritesReturnedEntities: Bool?     func pairedFavoriteForItem(cloudItem: Item) -> FavoriteItem {                  if allItems.contains(s) == false {             self.allItems.append(cloudItem)         }         if self.fetchedAlreadyFavoritesReturnedEntities == nil && self.allFavoriteItemObjects.isEmpty == true {             let request = NSFetchRequest<FavoriteItem>(entityName: "FavoriteItem")                                       request.sortDescriptors  = [NSSortDescriptor(key: "favoritedState", ascending: true)]             let favoriteRequestFRC =  NSFetchedResultsController(fetchRequest: request,                                                                  managedObjectContext: self.localManagedObjectContext,                                                                  sectionNameKeyPath: nil,                                                                  cacheName: nil)             favoriteRequestFRC.delegate = self             try? favoriteRequestFRC.performFetch()             let fetched: [FavoriteItem]? = favoriteRequestFRC.fetchedObjects                          if let f = fetched {                 self.allFavoriteItemObjects = Set<FavoriteItem>(f)             }             self.fetchedAlreadyFavoritesReturnedEntities = true         }         let results = self.allFavoriteItemObjects.filter {             return ($0.matchingItemUUID!.uuidString == cloudItem.uuid!.uuidString)         }         if results.isEmpty == false {             if let fave: FavoriteItem = results.first {                 s.isFavorite = fave.favoritedState             }             return results.first!         }         else {                         let newFavorite = self.makeFavoriteWithItem(cloudItem)                         self.allFavoriteItemObjects.insert(newFavorite)                                                  return newFavorite         }     }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’21
Reply to TabView on WatchOS (SwiftUI)
I know there are some good functional open source options out there, like PageView. Using that until I can figure out what to do with TabView (if there is anything.)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’21
Reply to NSPersistentCloudKitContainer: how to un-share objects?
Got the same problem... Mine works on the iPhone (hardware) and all the simulators, but not my apple watch device. Get the "Account temporarily unavailable due to bad or missing auth token" error. Beta 4.
Replies
Boosts
Views
Activity
Aug ’21