Hi, I just upgraded my macOS with beta 2. After upgrade, the SwiftTranscriptionSampleApp it's stopped working, in Xcode console I read: "The connection to service named com.apple.modelcatalog.catalog was invalidated: failed at lookup with error 159 - Sandbox restriction." Note: in beta 1 worked fine
macOS beta 2 -SwiftTranscriptionSampleApp not work
Same issue here with a very simple sample app.
Same issue here, worked perfectly before.
I do see the message in my Xcode console log when running this Apple sample app with Xcode 26 beta 2 + macOS 26 Beta 2, and yet, the app still functions correctly.
So does the error break your app's function in any way, and if yes, would you mind to provide the code so I can reproduce the issue with my environment?
Best,
——
Ziqiao Chen
Worldwide Developer Relations.
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.
It is not working for me either. I only downloaded it and tried it under macOS 26 Beta 2 and Xcode 26 Beta 2.
The guardrail parameter did not help.
I tried again your sample app with Xcode beta 2 + macOS beta 2 whiteout success. When start record, in console I see this message (note: I'm italian, so I forced language in "it_IT"): loadRawPromptTemplateFromModelCatalog failed with Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.modelcatalog.catalog was invalidated: failed at lookup with error 159 - Sandbox restriction." UserInfo={NSDebugDescription=The connection to service named com.apple.modelcatalog.catalog was invalidated: failed at lookup with error 159 - Sandbox restriction.}
same here, tried with several languages and reverted some specifics and still crashes
I try to re-send my previous message: I tried again your sample app with Xcode beta 2 + macOS beta 2 whiteout success
If the issue is still there with the latest Beta (Beta 2 as of today), I’d suggest that you capture a sysdiagnose, and then file a feedback report with it for the framework folks to investigate – If you do so, please share your report ID here.
Best,
——
Ziqiao Chen
Worldwide Developer Relations.
What beta are you talking about? I don't see a new macOS 26 or Xcode 26 beta out. They haven't been updated since June 23 / 24.