Post

Replies

Boosts

Views

Activity

Reply to The operation couldn’t be completed. (FoundationModels.LanguageModelSession.GenerationError error 4.)
You try catach the error, like: catch LanguageModelSession.GenerationError.guardrailViolation {...} catch LanguageModelSession.GenerationError.exceededContextWindowSize { ... } catch { answer = error.localizedDescription } If I am not wrong, this is theguardrail violation (prompt too sensitive). Change the prompt.
Jul ’25
Reply to macOS 13.2 UITextField misalignment when tapped
It is fixed in 13.4. Just tested and it works!
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
May ’23
Reply to How to install Xcode 15 beta
I have the same behaviour. Downloaded the 2nd time then Xcode appeared.
Replies
Boosts
Views
Activity
Jun ’23
Reply to Does Vision Pro simulator works on Intel?
Tested beta 5, same.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jul ’23
Reply to ARKit for spatial computing?
After reading again and again, I now realized it is for visionOS only.
Topic: Spatial Computing SubTopic: ARKit Tags:
Replies
Boosts
Views
Activity
Jul ’23
Reply to Cannot distribute app?
Note: I am still using macOS Ventura.
Replies
Boosts
Views
Activity
Oct ’23
Reply to System close and prominent done buttons in SwiftUI
So for a close box, what image should I use? A checkmark or a xmark?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’25
Reply to LanguageModelSession.GenerationError.exceededContextWindowSize not called
It is fixed in beta 3 (streaming version, I didn't try non streaming). Thanks!
Replies
Boosts
Views
Activity
Jul ’25
Reply to The operation couldn’t be completed. (FoundationModels.LanguageModelSession.GenerationError error 4.)
You try catach the error, like: catch LanguageModelSession.GenerationError.guardrailViolation {...} catch LanguageModelSession.GenerationError.exceededContextWindowSize { ... } catch { answer = error.localizedDescription } If I am not wrong, this is theguardrail violation (prompt too sensitive). Change the prompt.
Replies
Boosts
Views
Activity
Jul ’25
Reply to Foundation Model - Change LLM
Only in Shortcuts. I will be surprise if future release does not include cloud compute.
Replies
Boosts
Views
Activity
Jul ’25
Reply to How do I avoid a platform?
I found a solution, easy! #if os(visionOS) #else .glassEffect(.regular.interactive()) #endif
Replies
Boosts
Views
Activity
Jul ’25
Reply to The answer of "apple" goes to guardrailViolation?
It seems that Foundation Models framework in beta 3 got issues. As time goes along, more and more questions (that previously work in beta 3) got guardrailViolation errors. Now even "tell me a joke" got a guardrailViolation error!
Replies
Boosts
Views
Activity
Jul ’25
Reply to The answer of "apple" goes to guardrailViolation?
This seems to be solved in beta 4 (for now), everything back to normal.
Replies
Boosts
Views
Activity
Jul ’25
Reply to Cannot find type ToolOutput in scope
I found that I can change to: func call(arguments: Arguments) async throws -> GeneratedContent { var temp:Int switch arguments.city { case .singapore: temp = Int.random(in: 30..<40) case .china: temp = Int.random(in: 10..<30) } return GeneratedContent(temp) } But not sure if this is correct.
Replies
Boosts
Views
Activity
Aug ’25
Reply to `LanguageModelSession.respond()` never resolves in Beta 5
The .onAppear and Task can be replaced by .task. I did not experience your problem, so might try changing this.
Replies
Boosts
Views
Activity
Aug ’25
Reply to App name not localized
I figure out - need to create another String Catalog file called InfoPlist and add in CFBundleDisplayName.
Replies
Boosts
Views
Activity
Aug ’25