Post

Replies

Boosts

Views

Activity

DispatchSemaphore freeze
I'm calling the following function in a SwiftUI View modifier in Xcode 16.1: nonisolated function f -> CGFloat { let semaphore = DispatchSemaphore(value: 0) var a: CGFloat = 0 DispatchQueue.main.async { a = ... semaphore.signal() } semaphore.wait() return a } The app freezes, and code in the main queue is never executed.
2
0
155
3w
File size limit?
I keep getting crashes with the following error in Xcode 15 beta 7: CoreData: debug: PostSaveMaintenance: fileSize 15009192 greater than prune threshold CoreData: annotation: PostSaveMaintenance: wal_checkpoint(TRUNCATE) Is 15M bytes too much data?
2
0
1.1k
Aug ’23
NSUnknownKeyException: not key value coding-compliant for the key "(null)"
In Xcode 15 beta 3 and iOS 17 beta 3, my app with SwiftData keeps generating error: *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<NSManagedObject 0x2811cb390> setValue:forUndefinedKey:]: the entity dataSets is not key value coding-compliant for the key "(null)".' I have a model: @Model final class Station: Sendable { ... var dataSets: [String] } The error seems to occur when saving entities of the model in SwiftData. There is no entity named "dataSets". Only a property in the above model. What's the null key in the error?
3
3
1.4k
Jul ’23
English to English translation?
My app supports English and another language. The English string catalog is empty. Running the app in English in Xcode 15 beta 3, all strings are displayed in capital letters. It seems the behavior when translations are missing. Do we need to translate each English key into the same English translation, or is it a bug?
3
0
774
Jul ’23
cannot open file
Running my app with SwiftData in iOS 17 beta on iPhone leads to error: cannot open file at line 46973 of [554764a6e7] os_unix.c:46973: (2) open(/private/var/mobile/Containers/Data/Application/ED4308D5-058B-41BC-A617-A46F9754E3EC/Library/Application Support/default.store) - No such file or directory API call with unopened database connection pointer misuse at line 179760 of [554764a6e7] It seems the database file has not been created yet, since it's the first time running the app with SwiftData.
5
1
1.2k
Jun ’23