Post

Replies

Boosts

Views

Activity

Reply to SwiftData Array in random order?
I came up with the most elegant workaround I could and posted it as a small sample app here: https://github.com/hekuli/swiftdata-test The gist is that I make the model's array private, and have a corresponding public computed property that always sorts the array when accessed. I also use a Factory pattern for higher-level orchestration to manipulate the models b/c I encountered too many SwiftData crashes if model operations were not performed in exact order it likes. I'm still not sure if this is the best approach, so I'd love to hear any suggestions on how it could be improved.
Feb ’24
Reply to iOS 18.1 and SeiftData
Thank you all for posting this and the solution. This is literally the only resource about this on the internet. It helped me with a resolution. My app was working fine for iOS 17, but for iOS 18 would silently fail with the mentioned error b/c I didn't explicitly define the relationships and set the corresponding objects before insertion. I really can't believe Apple just made breaking changes to SwiftData, a supposedly stable framework, without any communication or documentation thereof. Very unprofessional. Never again will I be an early adopter of any of Apple's developer technologies.
Oct ’24
Reply to Xcode 16 & Package load failure
None of the solutions outlined here worked for me. The only way I got it to work was closing Xcode, deleting all the caches, then when adding my package: instead of choosing "Up to Next Major Version" as the dependency rule, I chose "Exact Version" and typed in the latest version number. After that I could navigate to my top-level project, then on the "Package Dependencies" tab, change it to "Up to Next Major Version". That seems to work, at least for now.
Mar ’25
Reply to iOS17 UITextView inputView becomFirstResponder does not work
Can confirm I am having the same issue, even after installing the latest XCode update today (Version 15.2 (15C500b)). iOS 17.2.1. Warnings are logged with both the simulator and my iPhone 13 mini (17.2.1). Removing all references to focusState does not fix.
Topic: UI Frameworks SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jan ’24
Reply to iOS 17 Simulator Issue: Error Message and lag when playing audio via AVAudioPlayer
I am also experiencing the same issue with iOS 17.2 and XCode 15.
Replies
Boosts
Views
Activity
Jan ’24
Reply to SwiftData Array in random order?
Also wondering about this. Because in my app the order is important, and I give users the option to reorder the items. Sorting after the fact with a computed property is fine for display, but this is much more of a headache when trying to persist an ordering change.
Replies
Boosts
Views
Activity
Jan ’24
Reply to SwiftData Array in random order?
I came up with the most elegant workaround I could and posted it as a small sample app here: https://github.com/hekuli/swiftdata-test The gist is that I make the model's array private, and have a corresponding public computed property that always sorts the array when accessed. I also use a Factory pattern for higher-level orchestration to manipulate the models b/c I encountered too many SwiftData crashes if model operations were not performed in exact order it likes. I'm still not sure if this is the best approach, so I'd love to hear any suggestions on how it could be improved.
Replies
Boosts
Views
Activity
Feb ’24
Reply to Anyone having trouble getting "Export Localizations" to build complex projects?
I am having the same issue. I cannot find FB12287778 in the Feedback tool. Are there any workarounds?
Replies
Boosts
Views
Activity
Apr ’24
Reply to iOS 17 apps still require 5.5" iPhones screenshots?
Same here
Replies
Boosts
Views
Activity
May ’24
Reply to StoreKit 2 - AppTransaction.originalAppVersion confusion
I'm having the exact same issue. Did you ever find a working solution?
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to Transaction state gets `.purchased` even I set `SKTestSession.askToBuyEnabled = true`
Also not working for me either, even with XCode 16 beta 3. Manual testing with transaction manager works as expected, but automated testing with SKTest does not work as expected :/ How is this still broken?
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to BUG: iOS 18 Simulator cannot "Save to Files"
FB15119244
Replies
Boosts
Views
Activity
Sep ’24
Reply to ShareLink not reliable, entitlement errors
Same with iOS 17.0
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’24
Reply to iOS 18.1 and SeiftData
Thank you all for posting this and the solution. This is literally the only resource about this on the internet. It helped me with a resolution. My app was working fine for iOS 17, but for iOS 18 would silently fail with the mentioned error b/c I didn't explicitly define the relationships and set the corresponding objects before insertion. I really can't believe Apple just made breaking changes to SwiftData, a supposedly stable framework, without any communication or documentation thereof. Very unprofessional. Never again will I be an early adopter of any of Apple's developer technologies.
Replies
Boosts
Views
Activity
Oct ’24
Reply to iOS 18 SwiftData Bug: Codable Models Cause Relationship Mapping Error
Probably the same thing described here: https://forums.developer.apple.com/forums/thread/762679?page=1#809681022
Replies
Boosts
Views
Activity
Oct ’24
Reply to Xcode cloud errors
I am also seeing this now for the first time when attempting to test with iOS 17 and 18. Any pointers?
Replies
Boosts
Views
Activity
Dec ’24
Reply to Xcode 16 & Package load failure
None of the solutions outlined here worked for me. The only way I got it to work was closing Xcode, deleting all the caches, then when adding my package: instead of choosing "Up to Next Major Version" as the dependency rule, I chose "Exact Version" and typed in the latest version number. After that I could navigate to my top-level project, then on the "Package Dependencies" tab, change it to "Up to Next Major Version". That seems to work, at least for now.
Replies
Boosts
Views
Activity
Mar ’25
Reply to Metal and Swift Concurrency
HI @Zapsurfer Did you ever come up with a good solution? I'm facing the same problems.
Topic: Graphics & Games SubTopic: Metal Tags:
Replies
Boosts
Views
Activity
Apr ’25