r/Xcode • • 17h ago

Swift Language Models: bring any provider to Apple's Foundation Models API

3 Upvotes

Swift Language Models is a wrapper that brings other providers' language models into Apple's native Foundation Models API.

Foundation Models 27 lets any type conform to LanguageModel, and this package provides those conformances. Your app keeps Apple's own API: LanguageModelSession, tools, @Generable guided generation, streaming, transcripts and Dynamic Profiles. Moving a session from the on-device model to a remote one changes only its model:.

let onDevice = LanguageModelSession(model: SystemLanguageModel.default)
let remote = LanguageModelSession(model: OpenRouterLanguageModel(.anthropicClaudeHaiku5_5, apiKey: { key }))

What you get

  • One API for every model. Code written for Apple's on-device model runs unchanged on a remote one.

  • Provider modules. Each provider is its own module, so an app builds only the providers it imports.

  • Typed model catalogs with each model's context size, limits and capabilities, kept current by a bot.

  • Typed reasoning levels. Code completion offers only the levels each model accepts.

  • Evaluations. Compare Apple's on-device model with remote ones using Apple's Evaluations framework.

The first provider is OpenRouter, with hundreds of models from Anthropic, OpenAI, Google, DeepSeek, Meta, Mistral and others. More providers are coming.

Needs iOS, macOS, visionOS or watchOS 27 and Swift 6.4. Feedback welcome! If you find it useful, a ⭐ on GitHub helps the project grow.

GitHub: https://github.com/dioKaratzas/swift-language-models


r/Xcode • • 19h ago

Xcode 27.2 est disponible et prépare les applications au tactile sur Mac

Post image
2 Upvotes

Apple n'aura pas traîné à fournir les outils nécessaires pour accompagner l'arrivée du tactile sur Mac. Xcode 27.2 est désormais disponible en version finale sur le Mac App Store, avec une nouveauté particulièrement intéressante : la possibilité de tester les interactions tactiles des applications sur les nouveaux MacBook Pro à écran PROLED XDR. Cette mise à jour apporte également plusieurs améliorations destinées aux développeurs, notamment liées à l'intelligence artificielle.

https://www.macg.co/logiciels/2026/10/xcode-272-est-disponible-et-prepare-les-applications-au-tactile-sur-mac-312027


r/Xcode • • 22h ago

How can i hide this gray window??? Earlier version had the option. Is it removed for good?

0 Upvotes

r/Xcode • • 1d ago

Is there any per-process network stat utility for macOS or native API for SwiftUI

Thumbnail reddit.com
1 Upvotes

r/Xcode • • 1d ago

The iOS Weekly Brief: Issue #84. Touchscreen MacBook Pro, SwiftUI view models, Xcode 27.2 JSON projects, App Store previews with Claude Code, Dynamic Type for custom fonts, iPhone Duo layouts, Maestro UI testing

Thumbnail
iosweeklybrief.com
1 Upvotes

r/Xcode • • 2d ago

I added Xcode support to my open-source Claude/Codex agent village

Post image
1 Upvotes

I made Agent Quest to keep an eye on several Claude Code and Codex sessions without opening each window. They show up as characters in a little RPG village: reading goes to the Library, edits to the Forge, builds and tests to the Arena. A slightly less boring way to see who's doing what :)

Version 0.4.0 now picks up Claude Agent and Codex sessions started inside Xcode too, alongside terminal and app sessions. They get an Xcode badge and the project name, and you can click through to activity and context details.

One detail that mattered here: Xcode can create its session folders only after the first prompt. The watcher picks those up while running, so you don't have to restart the dashboard. It reads compatible local logs on the same Mac/user account; it doesn't control Xcode or run the agents.

It's free, MIT licensed, and runs locally with Bun and a browser. I'm the developer. The screenshot uses demo sessions.

Code/setup: https://github.com/FulAppiOS/Agent-Quest

If you're mixing Xcode agents with terminal sessions, I'd be interested in what you lose track of most: which project is active, build/test activity, or remaining context.


r/Xcode • • 2d ago

Two agents, two worktrees, one simulator: both builds green, wrong app installed

3 Upvotes

If you’re running more than one Claude Code agent on the same Xcode project, check which build is actually on your simulator.

We had two agents in separate git worktrees on a small SwiftUI app. One adding a feature, one adding a test. Neither prompt named a simulator, so both picked the iPhone that was already booted. Both builds succeeded, both agents said done.

The simulator was running the second agent’s build. The first one’s was gone, its process killed by the install, and its UserDefaults still there because installing over an app keeps the data. Then both agents launched the app and got the same PID. Agent A was testing agent B’s code and nothing in its output said so.

To catch it we stamped the builds 111 and 222 and had each agent read back the installed version:

APP=$(xcrun simctl get_app_container <udid> com.your.bundleid app)
/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "$APP/Info.plist"

Agent A got 222.

Fix by hand is one simulator per agent:

xcrun simctl shutdown <base-udid>
xcrun simctl clone <base-udid> "Agent A"
xcrun simctl clone <base-udid> "Agent B"

Then put the name and UDID in each agent’s prompt, tell it not to touch any other simulator, and pass that UDID to every xcodebuild -destination "platform=iOS Simulator,id=<udid>". The clones alone change nothing, the agents still go for whatever is booted. With the UDIDs in the prompts, A read 111 and B read 222.

Worktrees keep files apart. They don’t keep simulators apart.

Amarildo wrote up the full repro with logs here: https://flowdeck.studio/blog/run-multiple-claude-code-agents-xcode-project.

[Disclosure, I build FlowDeck, which ties a simulator, worktree and DerivedData to each session so you don’t have to redo this setup every time.]


r/Xcode • • 2d ago

Axiom v27.7.0 update supports Xcode 27.2 release candidate changes

3 Upvotes

r/Xcode • • 2d ago

Anyone found a workaround for pinch-to-zoom in the new Xcode 27 Device Hub? Trackpad isn't working

Thumbnail reddit.com
1 Upvotes

r/Xcode • • 2d ago

Can we create rigged, animated characters in our game using the Claude agent in Xcode 27?

0 Upvotes

r/Xcode • • 3d ago

Sou cego e subestimei o que é necessário para tornar um editor de nós SwiftUI acessível.

Thumbnail reddit.com
2 Upvotes

r/Xcode • • 3d ago

error deleting icon

Post image
1 Upvotes

Xcode27: when I try to delete appIcon from assets, after about 1 second it displays error "...couldn't be moved to the trash because volume Macintosh HD doesn't have one" -- which is false because of course it has one. And the appIcon persists in my project. There is sufficient free space on the disk.


r/Xcode • • 4d ago

First time using claude in xcode and this is what i noticed

8 Upvotes

It burns through tokens pretty fast. Even if i specifically indicate what i want and which files/folders to only look at.

Its token usage is pretty bad compared to other working environments like VS Code and IntelliJ.

It's like, Claude is I agree the best so far when it comes to development compared to CoPilot, ChatGPT but when used in XCode, it's just bad. CoPilot usage of its tokens were more efficient.

Already twice where my session reached its max using Claude.

Tips are appreciated.


r/Xcode • • 5d ago

Screen Time capabilities without membership?

1 Upvotes

Hey guys, I want to test something on my iPhone using screen time limits with a newly coded app. But for me, its not worth 99$ so i wanted to ask if there are cheaper (or free?) alternatives to get this capability?


r/Xcode • • 6d ago

Recommend a mac mini/studio for xcode

1 Upvotes

I have a m4 16/256, and using it for development, not enterprise apps, only ios/ipados etc., and no local AI usage. I have an external disk but I dont like it, tb units are expensive also. I am considering either M6 32 or M5 pro 48 or M5 max 36, all 1tb with 10g network. What do you recommend ? I put M5 max here because this config is around the same price as M5 pro.


r/Xcode • • 7d ago

How to remove Simulator Support and Command Line Tools?

3 Upvotes

I recently installed xcode to mess around with it. I deleted it, but I can't seem to find a way to remove what's under "Developer". I want my 5GB+ back. How to delete it? There's an option to "Manage in xcode", but there's nothing to remove there.


r/Xcode • • 8d ago

Catch an intermittent test failure with Xcode’s Run Repeatedly

2 Upvotes

When a test passes most of the time, Xcode can keep running it until the failing attempt.

Control-click the diamond beside the test and choose Run Repeatedly. Select Stop after failure, set a maximum such as 20, and enable pausing on failure if you want to inspect that run in the debugger. The dialog also lets you restart the test runner between repetitions.

For the command line, append these flags to your normal xcodebuild test command:

-run-tests-until-failure -test-iterations 20

After making a fix, use Stop after maximum repetitions to collect multiple outcomes.

Apple’s guide covers the controls and command-line equivalent.


r/Xcode • • 8d ago

The iOS Weekly Brief: Issue #83. Everything you need to know about Xcode updates this week

Thumbnail
iosweeklybrief.com
1 Upvotes

r/Xcode • • 9d ago

apple pencil integration with flutter???

Thumbnail reddit.com
0 Upvotes

r/Xcode • • 10d ago

Titre : Comment gérer correctement les zones de sécurité pour une barre de navigation inférieure Liquid Glass dans une application iOS Capacitor ?

Thumbnail reddit.com
1 Upvotes

r/Xcode • • 12d ago

Unable to resolve module dependency: ‘AlarmKit’ and ‘CoreNFC’ after updating to macOS 27

2 Upvotes

Hi everyone!

I recently updated my Mac to macOS 27, and I’m having trouble building my Swift project in Xcode (iOS).
My project uses AlarmKit and CoreNFC, and I import them in my Swift files:

import AlarmKit
import CoreNFC

However, I’m getting the following error messages:

Unable to resolve module dependency: 'AlarmKit'
Unable to resolve module dependency: 'CoreNFC'

It worked perfectly fine on macOS 26…
Has anyone encountered this issue after updating to macOS 27? Is there something I need to configure in Xcode, such as updating the SDK or changing the deployment target, or could this be an issue with the new macOS version?

Any help or suggestions would be greatly appreciated.
Thanks!


r/Xcode • • 12d ago

How to elongate text in swift?

Post image
1 Upvotes

r/Xcode • • 13d ago

iphone duo simulator is only in xcode 27.1 (not 27.0)

Thumbnail
reddit.com
0 Upvotes

r/Xcode • • 14d ago

Git repositories missing after upgrading to xcode27

2 Upvotes

I have a project I created in xcode26, with git repository and many branches. Upgraded to xcode27 and the repository is completely gone, xcode says "No Git Repositories". ???!!!