Post

Replies

Boosts

Views

Activity

Reply to Xcode Version 15.0 beta 5 (15A5209g), SwiftData Problem - "The given data was not valid JSON."
May I see your initializer?
Replies
Boosts
Views
Activity
Jul ’23
Reply to CloudKit Stopped Syncing after adding a new Attribute
Right! Just adding the attribute isn’t enough. You need to save data for the attribute. Please mark my response with the green acceptance.
Replies
Boosts
Views
Activity
Jul ’23
Reply to CloudKit Stopped Syncing after adding a new Attribute
Run your app in the Development environment. Then go into the CloudKit Dashboard, switch to Development environment and look for your new attribute there. Then if all is well, deploy it to the Production environment.
Replies
Boosts
Views
Activity
Jul ’23
Reply to How to declare Privacy manifest
It's a file you add from Xcode. New / File / iOS / Resource / App Privacy. After that, you add to it like the below image. I'm using Xcode 15 beta 5 to do this. It's not available with current, non-beta version of Xcode.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jul ’23
Reply to Xcode 15 beta - Only one native Mac app can be added to the App Store
No word yet on this?
Replies
Boosts
Views
Activity
Jul ’23
Reply to Xcode Version 15.0 beta 5 (15A5209g), SwiftData Problem - "The given data was not valid JSON."
I filed a feedback on this.
Replies
Boosts
Views
Activity
Jul ’23
Reply to Xcode Version 15.0 beta 5 (15A5209g), SwiftData Problem - "The given data was not valid JSON."
My app uses a CloudKit public database and a private database. The image data in the public database is saved as a CKAsset and the data from the downloaded asset is saved in SwiftData. That data is not JSON data. Again, this works well until beta 5.
Replies
Boosts
Views
Activity
Jul ’23
Reply to Xcode 15 beta - Only one native Mac app can be added to the App Store
Has anybody gotten any word on this? It's still and unknown to me.
Replies
Boosts
Views
Activity
Jul ’23
Reply to SwiftData and 'Circular references'
Don't forget to use .cascade if you want to delete the related models when you delete the parent model.
Replies
Boosts
Views
Activity
Jul ’23
Reply to About AR Anchor's Orientation (Some Issues and Other Things)
The link to gravity and heading has been changed to the following. ARConfiguration.WorldAlignment.gravityandHeading
Topic: Spatial Computing SubTopic: ARKit Tags:
Replies
Boosts
Views
Activity
Jul ’23
Reply to SwiftData on visionOS?
On visionOS, my app works fine when fetching CKRecords, but crashes when it tries to fetch SwiftData. My app works fine on the iPhone and iPad Simulator.
Replies
Boosts
Views
Activity
Jul ’23
Reply to CloudKit/CoreData/SwiftData on visionOS?
On visionOS, my app works fine when fetching CKRecords, but crashes when it tries to fetch SwiftData. My app works fine on the iPhone and iPad Simulator.
Replies
Boosts
Views
Activity
Jul ’23
Reply to Does SwiftData support UIImage
I converted my Core Data app to SwiftData and here is how the @Model turned out with respect to my image. @Attribute(.externalStorage) var imageData: Data?
Replies
Boosts
Views
Activity
Jul ’23
Reply to What is the difference between swiftdata and coredata?
One difference. SwiftData does history tracking automatically. Core Data does not.
Replies
Boosts
Views
Activity
Jul ’23
Reply to SwiftData, CloudKit and UIKit - Updating View When Data Changes
All I had to do was observe the remote change notification within my view controller. I didn't need to turn on remote change notifications. NotificationCenter.default.addObserver(self, selector: #selector(updateView(_ :)), name: .NSPersistentStoreRemoteChange, object: nil)
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jul ’23