Post

Replies

Boosts

Views

Activity

Reply to macOS beta 2 -SwiftTranscriptionSampleApp not work
Some weird things are happening. Someone on the iOS-developers Slack channel figured this out: // This fails @State private var session = LanguageModelSession() // This works @State private var session = LanguageModelSession(guardrails:.default) I verified this fixed it a few hours ago, but now: After a few hours both started working fine, like Apple fixed the model remotely. Is that possible? There's a secondary problem where model results are cached EVEN IF AN ERROR OCCURS. This means that if the session returns an error for whatever reason, including a temporary Apple bug, the identical query will continue to return the same cached error even after quitting and re-running the app. Unfortunately I can't submit a bug report on this because I can't force an error any longer. Please let me know if this is fixed for you now or if you need to add the guardrails parameter.
Jun ’25
Reply to xcodebuild returns "Error: No such module"
With the help of Apple engineers during the WWDC, we determined that my primary problem was that I used both --target and --scheme parameters to xcodebuild. Turns out --scheme alone works much better. There was another problem in my bash script and xcodebuild didn't return errors well in that case, but that was a secondary issue.
Jul ’22
Reply to What are the benefits to Apple's Dispatch Queue API designing for future functionality?
The second parameter to dispatch_queue_create() is used for DISPATCH_QUEUE_SERIAL or DISPATCH_QUEUE_CONCURRENT. As for dispatch_get_global_queue(), who knows? It could have been used internally or they thought they would need it but never did. ObjC doesn't support default values like Swift does, so a lot of old code requires extra parameters.
Topic: Programming Languages SubTopic: General Tags:
Jun ’21