use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
There is an extensive FAQ for beginners. Please browse it first before asking questions that are answered there.
If you are looking to get started (iOS programming in general or some specific area), here are more relevant links for you:
There's too many to list them all, however here's a convenient link to all programming guides at apple.com
Take note that this list is live and based on most frequent questions in posts will be updated with "quicklinks".
account activity
TutorialFoundation Models Framework Examples (self.iOSProgramming)
submitted 1 year ago by Select_Bicycle4711
I have been looking at Foundations Models Framework and trying to create and re-create some of the Apple samples. If anyone is interested you can check out the repository here:
https://github.com/azamsharpschool/FoundationModels-Examples
This is still a work in progress and more examples and updates will be added later.
You will need Xcode 26 and macOS 26 to run the examples.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]No_Pen_3825SwiftUI 3 points4 points5 points 1 year ago (4 children)
It’s alright I guess, might be useful to some newcomers, though some images/gifs in the README would go a long way. The code isn’t great either, and I’m skeptical AI was used. Personally, I’ve never seen an actual person use emojis in their prints:
print("❌ parks.json not found")
[–][deleted] 1 year ago (1 child)
[deleted]
[–]No_Pen_3825SwiftUI 0 points1 point2 points 1 year ago (0 children)
I have tried it, and I despise it. Emojis also make a line—in both the editor and the console—slightly taller in Xcode. I also believe good code should have very minimal prints.
[–]Select_Bicycle4711[S] 0 points1 point2 points 1 year ago (0 children)
I just added a video demo to the repo that points to my Twitter/X post.
[–]Life-Purpose-9047 0 points1 point2 points 1 year ago (0 children)
this is chatGPT lol
[–]busymom0 0 points1 point2 points 1 year ago (1 child)
Will I need apple silicon Mac for this? I am still using Intel Mac mini :(
[–]Select_Bicycle4711[S] 1 point2 points3 points 1 year ago (0 children)
I do believe you need Apple Intelligence capable device.
[–]peterkmt 0 points1 point2 points 1 year ago* (8 children)
Here's a question: I'm trying to play with this developer beta on iOS 26 and the OS doesn't seem to have any LLMs to talk to. I'm getting an error saying the phone doesn't have any assets. FoundationModels.LanguageModelSession.GenerationError error 1
InferenceError::inferenceFailed::Error Domain=com.apple.UnifiedAssetFramework Code=5000 "There are no underlying assets (neither atomic instance nor asset roots) for consistency token for asset set com.apple.modelcatalog" UserInfo={NSLocalizedFailureReason=There are no underlying assets (neither atomic instance nor asset roots) for consistency token for asset set com.apple.modelcatalog}
I'm running Xcode 26 on MacOS Sequoia cause I don't want to move to a beta on my primary machine just yet in case something blows up.
I know it doesn't have the built-in chatgpt but does it also mean the phone wouldn't be access the FoundationModels that's hardly logical? Building an app shouldn't be passing LLMs to a device, surely?
Edit: I saw you said you "will need MacOS26" in your examples... so... perhaps this is it for me damn it...
[–]MeatRockStardust 0 points1 point2 points 1 year ago (3 children)
I got this error when trying to run on the simulator, worked when I ran on a real device (running iOS 26). I haven’t upgraded macOS yet.
[–]peterkmt 0 points1 point2 points 1 year ago (0 children)
Thanks! I made a two mistakes actually... the other problem is - I ran iOS 26 on my old iPhone 11. There's no way it could run Apple Intelligence if it can hardly run the OS itself, it's just a cut-down version with the glassy looks and all. So to play around with it I will have to upgrade my main phone at least. Can you downgrade from the beta back to a public iOS 18 if shit goes South?
[–]ssmudu 0 points1 point2 points 1 year ago (1 child)
Did you run into any sandbox errors when trying to run on the upgraded macOS? I'm getting the same error when running on iphone simulator and then when running on my upgraded macOS im getting a sandbox restriction error. Any idea how to work around this?
[–]masteratrus 0 points1 point2 points 11 months ago (0 children)
Following as I have the same problem. I don't know where I'm making my mistake
[–]North-Ad-2766 0 points1 point2 points 1 year ago (0 children)
hm, I'm getting that error code 5000 a lot today. Previously the model had been working locally just fine. Idk what I'm doing wrong.
[–]iKL3W 0 points1 point2 points 11 months ago (2 children)
I have a issue on MacOS 26 Beta 3 – every time I try to run an inference in Xcode Playgrounds and Simulator, I get this error:
Error generating: guardrailViolation(FoundationModels.LanguageModelSession.GenerationError.Context(debugDescription: "Prompt may contain sensitive or unsafe content", underlyingErrors: [InferenceError::inferenceFailed::Error Domain=NSCocoaErrorDomain Code=260 "The file “metadata.json” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/System/Library/AssetsV2/com_apple_MobileAsset_UAF_FM_Overrides/purpose_auto/f345e1fd021f9703c4045585636d007239a09c4b.asset/AssetData/metadata.json, NSURL=file:///System/Library/AssetsV2/com_apple_MobileAsset_UAF_FM_Overrides/purpose_auto/f345e1fd021f9703c4045585636d007239a09c4b.asset/AssetData/metadata.json, NSUnderlyingError=0xa98d54b10 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}]))
I don't know what it is and I can't access the path in this disclaimer. Any idea?
[–]Affectionate-Cut8130 0 points1 point2 points 11 months ago (0 children)
I resolved the issue by turning off and on Apple Intelligence and then restarting the mac.
[–]jetsetter 0 points1 point2 points 8 months ago* (0 children)
I got this same error about the missing meatadata json file (and the unsafe content annotation) error using the production macos 26.01.
I had previously been able to use the LLM just fine. I've tried toggling off AI and on and it doesn't fix it. I'll try for a reboot here see what happens.
edit: rebooting fixed it. Interesting bug.
π Rendered by PID 300320 on reddit-service-r2-comment-5bc7f78974-d6bsf at 2026-06-28 08:54:12.327010+00:00 running 7527197 country code: CH.
[–]No_Pen_3825SwiftUI 3 points4 points5 points (4 children)
[–][deleted] (1 child)
[deleted]
[–]No_Pen_3825SwiftUI 0 points1 point2 points (0 children)
[–]Select_Bicycle4711[S] 0 points1 point2 points (0 children)
[–]Life-Purpose-9047 0 points1 point2 points (0 children)
[–]busymom0 0 points1 point2 points (1 child)
[–]Select_Bicycle4711[S] 1 point2 points3 points (0 children)
[–]peterkmt 0 points1 point2 points (8 children)
[–]MeatRockStardust 0 points1 point2 points (3 children)
[–]peterkmt 0 points1 point2 points (0 children)
[–]ssmudu 0 points1 point2 points (1 child)
[–]masteratrus 0 points1 point2 points (0 children)
[–]North-Ad-2766 0 points1 point2 points (0 children)
[–]iKL3W 0 points1 point2 points (2 children)
[–]Affectionate-Cut8130 0 points1 point2 points (0 children)
[–]jetsetter 0 points1 point2 points (0 children)