I have some information that may be helpful to others, and to those addressing the Feedback created.
I have the same issue in a brand new app, created yesterday with Xcode 16 (16A242d). Deleting Derived Data and Erasing my simulator did not help.
The issue started when I added a new relationship to one of my Model classes - I've been able to 'fix' the crash (not entirely proven yet, but the initial crash is no longer happening) by moving the initialization of the relationship from the field definition to the constructor. In other words, this code crashes on launch:
@Relationship(deleteRule: .cascade)
var selections = Selection()
While this code does not:
@Relationship(deleteRule: .cascade)
var selections: Selection
init() {
selections = Selection()
}
I have filed a feedback for this issue as well, and referenced this thread: FB15250668
Post
Replies
Boosts
Views
Activity
It's my understanding that only SFSymbols are supported for Control Widget icons - I have no documentation for that, but have seen a lot of chatter on socials
Quick update - the CloudKit dashboard problem remains, however my data is sync'ing again. I found an error in my app logs after posting this that indicated sync'ing was halted because of a new field on one of my entities (this is the production environment).
I had deployed my schema changes about 4 hours prior, and the Record Types in the CloudKit dashboard all looked correct, but apparently it took several hours for the schema update to 'take'? 😳
At any rate, I still can't use the CloudKit dashboard to query any of my data in any Private database for any of my Apps. Just filed a Feedback - FB14824265, if anyone is listening 🙏
Hey, it worked - FinanceKit is now available in Feedback Assistant 🎉
Thanks!
Same error here
On a whim, I tested with both Universal Links, and the older URL Scheme links (<your-app-name>://some-deep-link), and neither of them are working
Filing a Feedback on Feedback Assistant is exactly what I did! 😂
FB13867472 (FinanceKit: FinanceKit should be an option in Feedback Assistant!)
@jonduenas is on the right track here. I started seeing this error today, and yesterday I updated my SwiftLint configuration to use the Build Tool Plug-in mechanism, rather than the Build Phase mechanism. This is almost certainly the cause of the issue (at least for me). Whether it's a problem with SwiftLint (currently using 0.55.1) or with Xcode, I can't say.
This is with Xcode 15.4, however I've been using the version without this error since it was released.
Still here on the RC - what gives?
Fast Forward one year using Xcode 15 - I got this same error, but the 'Register device' button is gone for me. On the plus side, all I had to do was to open the Signing and Capabilities tab on my app target, and it automatically started the device registration 👍
Seems like this is something that the build could handle, or the error could at least prompt us with the solution.
Ok, after reviewing the 'Trips' sample application that accompanied the 'Dive deeper into SwiftData' video from WWDC '23, I see that this is handled between the Trip and both the BucketListItem and LivingAccommodation entities by simply omitting the @Relationship annotation on the 'child' entities. I have a few questions, based on what I see:
If a LivingAccommodation entity is loaded via a @Query, will the trips field be populated by the SwiftData system?
On both child entities, the trip field is an Optional Trip - is this required in this scenario? I would imagine that it doesn't make sense to have a LivingAccommodation object without an associated Trip object, and my own Model is similar
I have a similar issue that I identified as being related to the Form. In my case, I had an onSubmit attached to the Form, which basically does the same thing as yours. If I change the Form to a VStack, everything works great, although it loses all of the Form styling, of course.
I've filed a feedback for this: FB9136142
I'm getting the same error in one of my projects. A workaround for me is to open a different project, and then File -> Open Recent, so I'm not dead in the water, but this is disconcerting, to say the least.
UPDATE: Fixed mine - upon further inspection, there was a warning for me to upgrade my Xcode configuration. Things look better now!
This is still broken in 14.2 GM. Is anyone using this new feature? This feels like a fundamental new feature that is completely broken
This entry is a year old, so this may not be helpful at this point, but the "Missing entitlement for API" error most commonly happens when trying to communicate with a device when the app is in the background, which unfortunately is not allowed (I would love it to be allowed, even in some limited way -- Apple, please?). Is this when you're seeing it, or is it happening while the App is in the foreground?