Post

Replies

Boosts

Views

Activity

Stream response
With respond() methods, the foundation model works well enough. With streamResponse() methods, the responses are very repetitive, verbose, and messy. My app with foundation model uses more than 500 MB memory on an iPad Pro when running from Xcode. Devices supporting Apple Intelligence have at least 8GB memory. Should Apple use a bigger model (using 3 ~ 4 GB memory) for better stream responses?
2
0
212
2w
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
701
Oct ’24
reloadTimelines failure
Calling reloadTimelines() on WidgetCenter.shared does not reload the timeline on my Apple Watch with watchOS 10.2 beta 2. Used to work in watchOS 10.1 and before. It does not work in iOS 17.2 beta 2 either. Do others see the same problem?
0
1
522
Nov ’23
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.4k
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.7k
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
864
Jul ’23