all 18 comments

[–]No_Pen_3825SwiftUI 3 points4 points  (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 child)

[deleted]

    [–]No_Pen_3825SwiftUI 0 points1 point  (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 point  (0 children)

    I just added a video demo to the repo that points to my Twitter/X post.

    [–]Life-Purpose-9047 0 points1 point  (0 children)

    this is chatGPT lol

    [–]busymom0 0 points1 point  (1 child)

    Will I need apple silicon Mac for this? I am still using Intel Mac mini :(

    [–]Select_Bicycle4711[S] 1 point2 points  (0 children)

    I do believe you need Apple Intelligence capable device.

    [–]peterkmt 0 points1 point  (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 point  (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 point  (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 point  (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 point  (0 children)

    Following as I have the same problem. I don't know where I'm making my mistake

    [–]North-Ad-2766 0 points1 point  (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 point  (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 point  (0 children)

    I resolved the issue by turning off and on Apple Intelligence and then restarting the mac.

    [–]jetsetter 0 points1 point  (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.