Post

Replies

Boosts

Views

Activity

Reply to error: the replacement path doesn't exist:
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
Sep ’24
Reply to "Internal Error" in CloudKit Dashboard
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 🙏
Aug ’24
Reply to Xcode 15.3 crippled with "internal inconsistency error"
@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.
Jun ’24
Reply to Provisioning Profile
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.
Jun ’23
Reply to SwiftData and 'Circular references'
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
Jun ’23
Reply to FocusState SwiftUI not working
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
Jun ’21
Reply to Domain=HMErrorDomain Code=80 "Missing entitlement for API."
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?
Oct ’20