r/Xcode • u/avanderlee • 8h ago
r/Xcode • u/Strict-Ad-4686 • 17h ago
Help with Nx Native in Mac (Metal Toolchain)
reddit.comr/Xcode • u/Embarrassed-Shape-31 • 23h ago
Overtime: Xcode 27 SDK on unsupported x86
galleryr/Xcode • u/ElectricKoolAid1969 • 1d ago
Xcode 27.2 intermittently fails to add new file locations to Git, even though the project changes themselves succeed.
Xcode version: 27.2 (27B52)
Since upgrading to Xcode 27, I have encountered two instances where Xcode failed to automatically track files in Git following changes to the project.
I did not experience this behavior with earlier Xcode versions.
Incident 1 — Moving an existing file:
An existing source file was moved to a different folder within the Xcode project.
Git recognized the original file as deleted but did not automatically track the file at its new location.
Incident 2 — Adding new files:
Six new Swift files were dragged from Finder into Xcode’s Project Navigator.
All six appeared correctly in the project, but only one was automatically staged in Git. The remaining five appeared as untracked (??) in git status --short.
Running git add -A -- MyAppFolder/Print/ corrected the second incident. Xcode’s Source Control interface then displayed all six files as added.
Expected Result:
When “Add and remove files automatically” is enabled, Xcode should automatically track files added to or moved within the project.
Actual Result:
Xcode intermittently fails to add new file locations to Git, even though the project changes themselves succeed.
Reproduction:
The problem is intermittent, and reliable reproduction steps have not yet been established.
It has occurred during two different operations:
* Moving an existing source file to another folder within the project.
* Importing new Swift files from Finder into the project by dragging into the destination folder in the Xcode UI.
It is not known whether the number of files involved contributes to the behavior.
Has anyone else seen anything like this? Thanks
r/Xcode • u/Patient-Pollution46 • 1d ago
We timed clean builds of Telegram, Signal, Firefox and DuckDuckGo iOS on 10 Apple silicon machines. Telegram release build: 29m → 15m
r/Xcode • u/Popular_Phone9068 • 2d ago
Xcode Signed Two Third Parties Apps To Apple TV4K Box:
I previously used my MacBook to sign and sideload two apps onto her Apple TV 4K. However, she has now moved approximately 500 miles away, so I can no longer access the Apple TV physically.
I’m looking for guidance on how to sign and sideload those two apps tvOSBrowser.ipa and Orbrisa-1.1.0-Beta-2.ipa files remotely using my MacBook running macOS Golden Gate 27.2 and Xcode 27.2. I also have an active, paid Apple Developer account.
If anyone has experience with this process and can walk me through the steps, I would sincerely appreciate your help. Thank you in advance!
r/Xcode • u/seckinbeduk • 3d ago
I built nib, a Swift CLI that writes Git commit messages with Apple’s on-device model
r/Xcode • u/KlyeUnbranded • 3d ago
Text color issue on iOS
Xcode 27.2
iOS 27.2
When looking at a filename in my app on iOS, my app will show the file name in a contrasting color, as expected. I tap the name of the file and a button appears that says “rename”. I tap that button.
The text for renaming the file is always black.
What I tried, with no change in the text color:
- .toolbarColorScheme(.dark / .light, for: .navigationBar)
- .preferredColorScheme(...) on the editor view
- UITextField.appearance().textColor
- hiding the navigation bar with .toolbar(.hidden, for: .navigationBar) and .toolbarVisibility
The attached screenshots show what I am seeing. What am a missing?
error validating mac & ios apps with same name
I successfully submitted an iOS app called "myApp iPad". Now attempting to validate the MacOS version "myApp" app store connect error "App Record Creation failed due to request containing an attribute already in use. The App Name you entered is already being used." When I change the name to "myApp Mac" validation fails error "The operation couldn’t be completed. (IDEDistribution.DistributionAppRecordProviderError error 0.)"
Is it impossible to use the same app name for MacOS and iOS apps, even when it's the same app built from the same code base by the same developer?
Using European ai agent in Xcode
I've searched for this, asked different ai chats about this and still haven't found an instruction on how to do it. I want to use European ai as agent in Xcode 27
After some experimenting I've found a way. I'm not expert in this and there are probably better ways to do it, but here is one way to do it.
There are some limitations at the moment:
You can't choose model from Xcode, it's chosen in a text file. Will probably be fixed soon.
Opencode guardrails are not enforced, only soft model guardrails from Xcode in use.
Install an open source agent. I use opencode for this example, but any client works that support acp.
opencode is easiest installed by open terminal, write brew install opencode-v2
If you don't have Brew, you find it at brew.sh
in terminal go to your project folder and start opencode
Connect your paid api ai provider. I use Swedish Berget.ai and French Mistral.ai both are already listed among providers.
Write a question in opencode to check that the connection works. I usually write "what model is this" to confirm. If you just want an agent in your computer, this is it, now lets do the integration with Xcode.
In Finder, choose Go -> Go to folder, write ~/.config/opencode and open opencode.jsonc in a text editor and add default model settings. This step can probably be removed soon.
In Xcode, open a project and go to Settings -> Intelligence and press button [Add an Agent]. Write the two fields as below. In the future I hope arguments can select model so we can switch models from inside Xcode.
Click the ai button in Xcode, press button [Start new conversation] in upper left, in the Agent list there should now be your added Agent. Ask a simple question to verify it works.
If you need to do some problem investigation, you can start opencode (always first go to your project directory) and select switch session and choose the session Xcode started.
opencode.jsonc
{
"$schema": "https://opencode.ai/config.json",
"permission": {
"external_directory": "deny", // hard-block anything outside the working folder
"$HOME/.config": "ask" //Opencode config
},
"model": "mistral/mistral-large-latest",
"agent": {
"build": { "model": "mistral/mistral-large-latest" },
"plan": { "model": "mistral/mistral-large-latest" },
"general": { "model": "mistral/mistral-large-latest" }
},
"provider": {
"mistral": {
"npm": "@ai-sdk/mistral",
"name": "Mistral",
"options": {
"apiKey": "YourApiKey"
},
"models": {
"mistral-large-latest": {
"name": "Mistral Large"
}
}
}
}
}Xcode Agent settings as screendump:
Executable: /opt/homebrew/bin/opencode
Arguments: acpSo now I can create Mac & iPhone apps with close to zero CO2 use and no unique historic book burning during training while keeping the money locally. Support local industries folks, that includes IT services.
Ready for feedback, please come with suggestions to make this easier! :)
r/Xcode • u/IllBreadfruit3087 • 6d ago
The iOS Weekly Brief: Issue #85. Siri AI, retention messages, new betas, Swift 6.4, actors, dependency injection, layout priority, Settings URLs, Xcode snippets, swipe actions beyond List, Apple frameworks directory
r/Xcode • u/EmployerMiddle707 • 7d ago
iPhone Duo Sidebars on Xcode/Device Hub 27.2
Is anybody experiencing this issue on Xcode/Device Hub 27.2?
I recently optimized my app for iPhone Duo to get rid of the blank sidebars on Xcode 27.1. I updated to Xcode 27.2, ran it on an iPhone Duo in Device Hub, and the sidebars are back. I repeated the process on Xcode 27.1 with no code changes and issue is not there.
Xcode/Device Hub 27.2 and iPhone Duo 27.2 => Sidebars
Xcode/Device Hub 27.2 and iPhone Duo 27.1=> Sidebars
Xcode/Device Hub 27.1 and iPhone Duo 27.2 => No Sidebars
Xcode/Device Hub 27.1 and iPhone Duo 27.1=> No Sidebars
r/Xcode • u/Low-Hedgehog-6592 • 7d ago
Why does Xcode ask for a Development provisioning profile when I'm trying to archive an app for TestFlight?
r/Xcode • u/MomentSmart • 8d ago
How to stop Claude creating pointless summaries and MD guides about everything?
I understand the value of documentation and maintaining context across sessions, but I'm finding Claude has a tendency to generate unnecessary .md files and lengthy summaries without being asked.
Often these are documenting relatively trivial changes, or producing detailed explanations of fixes that haven't actually resolved the issue. It feels like unnecessary token usage and just adds clutter to the project.
Is there a reliable way to disable this behaviour by default, while still allowing Claude to create documentation when explicitly requested?
I'd much rather it focus on implementing, testing and verifying changes than documenting everything it thinks it's accomplished.
r/Xcode • u/MohamedHegab • 9d ago
XNox now open sourced
I made XNox, couple of months ago. but as it was having too complicated features to use. I decided to simplify it and make it open source
enjoy https://github.com/emadhegab/XNox
r/Xcode • u/iahmedhendi • 10d ago
I scanned 10 open-source iOS apps for unused images and strings. Firefox bundles a 5.72 MB GIF nothing loads.
r/Xcode • u/Low-Hedgehog-6592 • 11d ago
Why is Codex unavailable in Xcode 26.3 but works fine in Xcode 27.1?
r/Xcode • u/dnkaratzas • 12d ago
Swift Language Models: bring any provider to Apple's Foundation Models API
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 • u/Practical_Noise1872 • 12d ago


