Post

Replies

Boosts

Views

Activity

Reply to Selecting which data models sync with iCloud SwiftData
Hello, Not sure if you still have the same issue. I had the same problem, but today after several trials I found out that it seems to be solved by simply naming the configurations, i.e.: let modelConfigForNoCloudSync = ModelConfiguration("local", schema: modelNotForCloudSyncing, cloudKitDatabase: .none) let modelConfigForCloudSync = ModelConfiguration("synced", schema: modelsForCloudSyncing, cloudKitDatabase: .automatic) This seems to be enough to get rid of all the 'duplicate stores' issues, and the data syncs as intended.
Mar ’24
Reply to Document browser app in iOS 15 keeps creating iCloud drive folder
[EDIT] If anybody is interested, this is the simplest way to reproduce the issue using the Xcode template: (1) Create a new project in Xcode 13.0. (2) Choose iOS -> Document App. (3) Choose Interface: Storyboard and create the project (for simplicity let’s use “MyApp” as Product Name). (4) Build and install MyApp on a device running iOS 15.0 or 15.0.1 with iCloud Drive enabled. (5) Leave the default setting for Document Storage (i.e. iCloud Drive) in Settings -> MyApp. (6) Create a text file with any content and save it with extension “exampletext” (i.e. the imported type identifier used by the app template - let’s call the file “test.exampletext”). (7) Send an email to an inbox accessible from the device with test.exampletext as attachment. (8) Open Mail on the device, long-press on test.exampletext and share it to MyApp. If a folder “MyApp” exists in iCloud Drive, it will be renamed to “MyApp 2”; a new “MyApp” folder will be created and test.exampletext will be saved in the new folder. Sharing again test.exampletext from the mail to MyApp will create another “MyApp” folder and rename the previous one; an arbitrary number of “MyApp n” folders can be created in this way, each including one copy of the document. I submitted a bug report using the Feedback Assistant, hopefully it will be fixed...
Oct ’21
Reply to Selecting which data models sync with iCloud SwiftData
Hello, Not sure if you still have the same issue. I had the same problem, but today after several trials I found out that it seems to be solved by simply naming the configurations, i.e.: let modelConfigForNoCloudSync = ModelConfiguration("local", schema: modelNotForCloudSyncing, cloudKitDatabase: .none) let modelConfigForCloudSync = ModelConfiguration("synced", schema: modelsForCloudSyncing, cloudKitDatabase: .automatic) This seems to be enough to get rid of all the 'duplicate stores' issues, and the data syncs as intended.
Replies
Boosts
Views
Activity
Mar ’24
Reply to Document browser app in iOS 15 keeps creating iCloud drive folder
[EDIT] If anybody is interested, this is the simplest way to reproduce the issue using the Xcode template: (1) Create a new project in Xcode 13.0. (2) Choose iOS -> Document App. (3) Choose Interface: Storyboard and create the project (for simplicity let’s use “MyApp” as Product Name). (4) Build and install MyApp on a device running iOS 15.0 or 15.0.1 with iCloud Drive enabled. (5) Leave the default setting for Document Storage (i.e. iCloud Drive) in Settings -> MyApp. (6) Create a text file with any content and save it with extension “exampletext” (i.e. the imported type identifier used by the app template - let’s call the file “test.exampletext”). (7) Send an email to an inbox accessible from the device with test.exampletext as attachment. (8) Open Mail on the device, long-press on test.exampletext and share it to MyApp. If a folder “MyApp” exists in iCloud Drive, it will be renamed to “MyApp 2”; a new “MyApp” folder will be created and test.exampletext will be saved in the new folder. Sharing again test.exampletext from the mail to MyApp will create another “MyApp” folder and rename the previous one; an arbitrary number of “MyApp n” folders can be created in this way, each including one copy of the document. I submitted a bug report using the Feedback Assistant, hopefully it will be fixed...
Replies
Boosts
Views
Activity
Oct ’21