Post

Replies

Boosts

Views

Activity

Reply to Notify when @FetchRequest changes?
I'm sure I'm going to hose the Combine terminology... but onReceive takes anything that conforms to Publisher. Trigger an auto-complete after the publisher to see what I mean. In your case, collect() seems like what you want? Collects all received elements, and emits a single array of the collection when the upstream publisher finishes. I'm looking to be notified when any change occurs, but not of the individual items. collect() is perfect for me. Someone with actual Combine knowledge can likely offer something better :)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’23
Reply to Mac (designed for iPad) builds but does not run - "This application requires a newer version of macOS." but I am on the latest version
Hi Jason, thanks for the quick reply! Here are the vitals: macOS Version 12.6.2 (Build 21G320) Xcode 14.2 (21534) (Build 14C18) Timestamp: 2023-01-09T08:42:44-08:00 I can successfully target and run on 16.0, so I don't believe I'm using any 16.2 APIs. I am of course using plenty of what's new in SwiftUI this year ;) This is the content of the dialog that appears: Unable To Install “<your bundle>” This application requires a newer version of macOS. The system version is lower than the minimum OS version specified for bundle at /var/db/appinstalld/Library/Caches/com.apple.mobile.installd.staging/temp.U90CDi/extracted/<app name>.app. Have 15.7; need 16.0 [ DETAILS ] [ OK ] ```
Jan ’23
Reply to NSFetch Request return sum over computed properties
If you're using the SQLite persistent store, then that code won't work at all. The limitation is caused by CoreData pushing the processing of the request to the database engine but the database engine can't see the "software implemented" properties. This took me several hours of searching to find, thank you for the explanation! For reference, I was attempting to create a SortDescriptor based on a computed property on a CoreData entity. Here are a few breadcrumbs for the next person: Core Data: Fatal Error sorting using a computed property Creating a SortDescriptor in Swift from a computed property on a CoreData entity Error message - keypath not found in entity with userinfo of (null) Must be introspectable by the objective-c runtime
Oct ’22
Reply to Xcode debugger doesn't pause on breakpoints (simulator SDK < iOS 17)
Hey folks! There's a number of these threads open and now a bug number. I'm cross-posting for visibility and will update if I find more: Post: Xcode do not pause at breakponts on "Wait for the executable to be lauched" mode Post: Xcode debugger doesn't pause on breakpoints (simulator SDK < iOS 17) Comment: Feedback opened; FB13529134
Replies
Boosts
Views
Activity
Jan ’24
Reply to Xcode do not pause at breakponts on "Wait for the executable to be lauched" mode
Hey folks! There's a number of these threads open and now a bug number. I'm cross-posting for visibility and will update if I find more: Post: Xcode do not pause at breakponts on "Wait for the executable to be lauched" mode Post: Xcode debugger doesn't pause on breakpoints (simulator SDK < iOS 17) Comment: Feedback opened; FB13529134
Replies
Boosts
Views
Activity
Jan ’24
Reply to Xcode do not pause at breakponts on "Wait for the executable to be lauched" mode
Also wondering if there's an open issue to track this. Bitten me too, and I need the debugger :)
Replies
Boosts
Views
Activity
Jan ’24
Reply to Notify when @FetchRequest changes?
I'm sure I'm going to hose the Combine terminology... but onReceive takes anything that conforms to Publisher. Trigger an auto-complete after the publisher to see what I mean. In your case, collect() seems like what you want? Collects all received elements, and emits a single array of the collection when the upstream publisher finishes. I'm looking to be notified when any change occurs, but not of the individual items. collect() is perfect for me. Someone with actual Combine knowledge can likely offer something better :)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’23
Reply to Notify when @FetchRequest changes?
Mirror question on Stack Overflow.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’23
Reply to Mac (designed for iPad) builds but does not run - "This application requires a newer version of macOS." but I am on the latest version
Upgraded to Ventura (13.1) and now it works 🤷‍♂️
Replies
Boosts
Views
Activity
Jan ’23
Reply to Mac (designed for iPad) builds but does not run - "This application requires a newer version of macOS." but I am on the latest version
Hi Jason, thanks for the quick reply! Here are the vitals: macOS Version 12.6.2 (Build 21G320) Xcode 14.2 (21534) (Build 14C18) Timestamp: 2023-01-09T08:42:44-08:00 I can successfully target and run on 16.0, so I don't believe I'm using any 16.2 APIs. I am of course using plenty of what's new in SwiftUI this year ;) This is the content of the dialog that appears: Unable To Install “<your bundle>” This application requires a newer version of macOS. The system version is lower than the minimum OS version specified for bundle at /var/db/appinstalld/Library/Caches/com.apple.mobile.installd.staging/temp.U90CDi/extracted/<app name>.app. Have 15.7; need 16.0 [ DETAILS ] [ OK ] ```
Replies
Boosts
Views
Activity
Jan ’23
Reply to Mac (designed for iPad) builds but does not run - "This application requires a newer version of macOS." but I am on the latest version
Finally, I am on the latest versions of everything I can find. I'm not sure what simulator? engine? service? this error message is referring to, when it says something is on 15.7.
Replies
Boosts
Views
Activity
Jan ’23
Reply to Mac (designed for iPad) builds but does not run - "This application requires a newer version of macOS." but I am on the latest version
Oops, I am targeting iOS 16.2 with destinations of iPad and Mac (Designed for iPad)
Replies
Boosts
Views
Activity
Jan ’23
Reply to Mac (designed for iPad) builds but does not run - "This application requires a newer version of macOS." but I am on the latest version
Sorry, targeting iOS 16.2, with destinations of iPad and Mac (Designed for iPad).
Replies
Boosts
Views
Activity
Jan ’23
Reply to AsyncImage - Cancelled Loading before View is Visible
This conversation in the Kingfisher async image library captures the ongoing issue(s) for many of us, including additional workarounds. There was a Feedback case filed (FB11564208), but those aren't public so I'm not sure how to report status.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’22
Reply to ShareLink + FileRepresentation: Can't Save to Files
I'm also struggling to get this working; same error messages. ShareLink seems quite finicky to get right so far! Will report back if I'm able to work around.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’22
Reply to ShareLink + FileRepresentation: Can't Save to Files
I'm also seeing this issue, doing the same thing with the same error messages. Will post back if I'm able to make progress!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’22
Reply to Core Data: Fatal Error sorting using a computed property
After spending three hours on this yesterday, I would absolutely be interested in a write-up or some pseudocode 😀 I commented in another thread about this in terms of hoping others can shortcut their search!
Replies
Boosts
Views
Activity
Oct ’22
Reply to NSFetch Request return sum over computed properties
If you're using the SQLite persistent store, then that code won't work at all. The limitation is caused by CoreData pushing the processing of the request to the database engine but the database engine can't see the "software implemented" properties. This took me several hours of searching to find, thank you for the explanation! For reference, I was attempting to create a SortDescriptor based on a computed property on a CoreData entity. Here are a few breadcrumbs for the next person: Core Data: Fatal Error sorting using a computed property Creating a SortDescriptor in Swift from a computed property on a CoreData entity Error message - keypath not found in entity with userinfo of (null) Must be introspectable by the objective-c runtime
Replies
Boosts
Views
Activity
Oct ’22