Can you confirm:
If you want to run that snippet, you have to have Xcode 26 on macOS 26.
(Which in the post WWDC25 context, are both in beta).
If you do not have macOS 26 running, this will not work, even if you try to containerize the code inside iOS26 on a simulator of hardware that supports Apple AI.
The reason I ask: I only have one system for Xcode, so I can't upgrade to beta, and I don't have any iOS devices that support Apple AI.
Topic:
Machine Learning & AI
SubTopic:
Apple Intelligence
Tags: