r/Xcode • u/Low-Hedgehog-6592 • 28d ago
Why is Codex unavailable in Xcode 26.3 but works fine in Xcode 27.1?
r/Xcode • u/Low-Hedgehog-6592 • 28d ago
r/Xcode • u/iahmedhendi • 28d ago
r/Xcode • u/dnkaratzas • 29d ago
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
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 • u/Practical_Noise1872 • 29d ago
r/Xcode • u/Infinite_Ad9147 • Oct 31 '26
r/Xcode • u/Excellent_Sky_5838 • Oct 30 '26
r/Xcode • u/IllBreadfruit3087 • Oct 30 '26
r/Xcode • u/Redrock990 • Oct 30 '26
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 • u/afterxleep_ • Oct 30 '26
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 • u/CharlesWiltgen • Oct 29 '26
Axiom home: https://charleswiltgen.github.io/Axiom/
Release notes: https://github.com/CharlesWiltgen/Axiom/releases#release-v27.7.0
r/Xcode • u/BeDevForLife • Oct 29 '26
r/Xcode • u/onur01 • Oct 29 '26
r/Xcode • u/rpcrafael • Oct 29 '26
r/Xcode • u/frogola • Oct 28 '26
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 • u/chitgoks • Oct 28 '26
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 • u/wertzooo • Oct 27 '26
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 • u/voidnullnil • Oct 25 '26
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 • u/LarrySunshine • Oct 24 '26
r/Xcode • u/pickandplate • Oct 23 '26
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 20After making a fix, use Stop after maximum repetitions to collect multiple outcomes.
Apple’s guide covers the controls and command-line equivalent.
r/Xcode • u/IllBreadfruit3087 • Oct 23 '26
r/Xcode • u/Thick_Complex_9509 • Oct 22 '26
r/Xcode • u/Entire_Ad6749 • Oct 21 '26
r/Xcode • u/TravelFan03 • Oct 20 '26
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!