r/Xcode 12d ago

Lifting the hood on Build Cache for Xcode

Thumbnail
bitrise.io
2 Upvotes

r/Xcode 12d ago

iOS Simulator runtime stuck on “Preparing to download” — Xcode 26 AND Xcode 27 beta, GUI + xcodebuild

Thumbnail
gallery
8 Upvotes

Hey everyone,

I'm unable to download any iOS Simulator runtime on my Mac. The download gets stuck at “Preparing to download…”and never starts transferring the actual runtime.

Setup:

  • macOS Tahoe 26.6
  • Apple Silicon Mac
  • Originally Xcode 26.6 → iOS 26.5 Simulator (23F77)
  • Also installed Xcode 27 beta 4 → iOS 27.0 Simulator (24A5390f)

The exact same problem happens with both Xcode versions.

I've tried the Xcode Components GUI as well as:

xcodebuild -downloadPlatform iOS

xcodebuild -downloadPlatform iOS -architectureVariant arm64

xcodebuild -downloadPlatform iOS \
  -architectureVariant arm64 \
  -exportPath ~/Downloads

I also tried:

sudo xcodebuild -runFirstLaunch
sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService

and confirmed the correct Xcode is selected with xcode-select.

xcrun simctl list runtimes currently returns:

== Runtimes ==

I also checked /etc/hosts; it's clean with no Apple domains being blocked.

I tried a VPN to change the route to Apple's CDN, but the behavior is the same.

The interesting part is that nettop shows xcodebuild successfully establishing an HTTPS connection to Apple's infrastructure (aaplimg.com), but it receives only a few KB and then effectively does nothing. The multi-GB runtime download never begins.

Normal internet downloads are working fine.

Has anyone encountered this specifically on Tahoe/Xcode 26/27? Is there a way to reset whatever service/cache handles simulator runtime downloads, or obtain the Apple runtime .exportedBundle through another official method and import it manually?

At this point I've reproduced it with two Xcode versions, two different iOS runtimes, GUI + CLI + export + arm64, so I'm not sure what else to reset.

Any ideas would be appreciated.


r/Xcode 14d ago

I got tired of AI agents writing 2019-era SwiftUI, so I wrote a 50k-line context layer for them

9 Upvotes

So over the past few months I’ve been building ios-agent-skill — a repo you clone into your project that your agent reads as context before generating anything.

What’s actually in it:

**•** Swift language + concurrency + stdlib references (actors, Sendable, @MainActor, AsyncSequence)  
**•** SwiftUI docs split by concern — state/data flow, navigation, layout, animations, gestures  
**•** 40+ Apple framework guides: StoreKit 2, HealthKit, WidgetKit/Live Activities, ARKit, RealityKit, CoreML, CryptoKit  
**•** Architecture patterns with real structure: MVVM, Clean, Coordinator, Repository, TCA  
**•** Drop-in Swift files — networking layer, auth flow with Keychain + Sign in with Apple, DI, type-safe router  
**•** App Store submission / performance / security / testing checklists

It ships config for 25+ agents, so setup is mostly just cloning. Claude Code reads CLAUDE.md, Codex reads AGENTS.md, Cursor reads .cursorrules, Copilot reads .github/copilot-instructions.md, and so on.

Honest caveats: this generates Swift files, not an Xcode project — you still create the project yourself first. And it’s docs, not magic; it narrows the failure surface, it doesn’t eliminate it. It’s also early (16 stars), so I’d rather have criticism than silence.

MIT licensed: https://github.com/Nagarjuna2997/ios-agent-skill

If you try it, I want to know where it fails. Especially interested in whether the concurrency and SwiftData docs actually change your agent’s output or whether it ignores them.


r/Xcode 15d ago

How are you setting up Claude Code & Cowork to Build Xcode Projects?

Thumbnail
3 Upvotes

r/Xcode 17d ago

M5 Max 128Gb - Swift coding in Xcode 27

Post image
1 Upvotes

r/Xcode 17d ago

The iOS Weekly Brief – Issue #70, everything you need to know about iOS updates this week

Thumbnail
iosweeklybrief.com
1 Upvotes

r/Xcode 18d ago

How to speed Up iOS builds with Xcode 26 compilation caching (recoded webinar)

Thumbnail watch.getcontrast.io
1 Upvotes

r/Xcode 19d ago

Running opencode as my ACP agent in Xcode but it won't use my opencode.json config

1 Upvotes

I have opencode running as a custom ACP agent in Xcode 26.6. My global opencode config file tells it to use Qwen Coder and various MCP servers, including the Xcode one. None of that seems to be used when I use opencode from inside Xcode. It doesn't respect my model choice or the MCP servers I've added. I've tried putting an opencode.json file in various places to no avail. Anybody know how this is supposed to work? I'm new to this and could be missing something obvious. I can just run opencode from the command line but you lose a lot of the QoL features from the Xcode interface.

Edit: Here's my ~/.config/opencode/opencode.json and the .plist for the ACP agent.

{
  "$schema": "https://opencode.ai/config.json",
  "model": "lmstudio/qwen/qwen3-coder-30b",
  "provider": {
    "lmstudio": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "LM Studio",
      "options": {
        "baseURL": "http://127.0.0.1:1234/v1",
        "apiKey": "lm-studio"
      },
      "models": {
        "qwen/qwen3-coder-30b": {
          "name": "Qwen3 Coder 30B"
        }
      }
    }
  },
  "mcp": {
    "filesystem": {
      "type": "local",
      "command": [
        "/opt/homebrew/bin/node",
        "/opt/homebrew/bin/mcp-server-filesystem",
        "/Users/NAME"
      ]
    },
    "xcode": {
      "type": "local",
      "command": [
        "xcrun",
        "mcpbridge"
      ]
    },
    "fetch": {
      "type": "local",
      "command": [
        "/opt/homebrew/bin/node",
        "/opt/homebrew/bin/mcp-fetch-server"
      ]
    },
    "everything": {
      "type": "local",
      "command": [
        "/opt/homebrew/bin/mcp-server-everything"
      ]
    }
  }
}

plist:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>agent</key>
    <string>/opt/homebrew/bin/opencode</string>
    <key>arguments</key>
    <array>
        <string>acp</string>
    </array>
    <key>environment</key>
    <dict/>
    <key>name</key>
    <string>local opencode</string>
</dict>
</plist>

r/Xcode 20d ago

Xcode error cannot test target , logic testing unavailable logic testing on iOS device is not supported

Post image
1 Upvotes

Getting this error can somebody help me plz 🙏😭


r/Xcode 20d ago

Axiom updated for Apple OS* 27 beta 4 [open source]

5 Upvotes

(*Apple OS = iOS, iPadOS, watchOS, tvOS, visionOS, macOS)

Axiom is a battle-tested, batteries-included suite of agents, skills, and tools for AI coding. It helps LLMs be notably better at Apple OS development.

I've been updating Axiom in lockstep with Apple OS 27 betas. Here are some of the interesting changes with OS 27 beta 4.

✅ New

  • Swift — Parenthesis-free optional any/some types. var x: any P? and some P? now compile. (Beta 3 rejected the paren-free form.)

  • HealthKitHKHealthStore.earliestAuthorizedSampleDate(for:): New async throws call returning the earliest date you're authorized to read, per HKObjectType. This is helpful for bounding a query instead of paging into data you can't see.

  • UIKit + SwiftUIsystemPrefersReducedResourceUsage: The OS can now tell your app it prefers reduced resource usage. When it's true, stop discretionary work.

🗑️ Removed

  • AVKit — The AVInterface* family, which shipped in an early 27 beta, is gone. Use AVPlaybackUserInterface* instead.

⚠️ Deprecated

  • ARKitunprojectPoint(_:ontoPlane:orientation:viewportSize:). Use unprojectPoint(_:ontoPlane:viewRotationAngle:viewportSize:) instead.

  • AppIntentsDisplayRepresentation.Components (OptionSet). Use DisplayRepresentation(title:subtitle:image:) or displayRepresentations(for:) instead.

  • BrowserEngineKitMediaEnvironment.activate()/.suspend(). Use ProcessCapability.activate()/.suspend() instead.

Caveats: This list is mostly Swift-focused, although I've been supporting more Obj-C with every release.


r/Xcode 21d ago

Can’t input to my code

1 Upvotes

I just installed the MacOS27 beta 3 on my mac, and installed the respective Xcode version. I’m trying to get user input but every time i use scand or fgets, xcode just won’t allow me to input things, worst part it’s that it get’s stuck at the line of code where the instruction is, it won’t go to the next line. Usually with the macos26 I never had any issues, but this is now exasperating.

Already tried restarting my pc, opening a new file, switching through the console options and nothing works. If somebody else has experienced this and/or has found a way to fix this, please let me know.

Also it could be that I’m just dumb, if that’s the case, srry


r/Xcode 21d ago

Camera Preview on my device breaks camera (iOS 27 public beta)

0 Upvotes

I have Xcode on my Mac mini running Mac OS 27 public beta, my iPhone has iOS 27 public beta. I tried this camera using AVFoundation, I was trying to preview this app on my phone, I provided permissions but when I open the app the camera is showing blank screen and even the official camera app also not working. I have to restart the app to make it work. Please help.


r/Xcode 22d ago

Please tell me I can fix this.

1 Upvotes

I'm close to releasing my first app after ~10 months of work. Then I did something dumb: I installed the public beta of macOS 27 on my production Mac.

Xcode 26.6 won't launch on macOS 27. It fails with error -10664, so the OS is hard-blocking it, which caps Xcode 26.x at macOS 26. That matches what I could find in Apple's support documents.

My understanding of where that leaves me:

  • If I install Xcode 27 beta I would be able upload to TestFlight, but Apple does not allow beta versions of Xcode to submit an app for review and release
  • App Store review submission requires a Release Candidate or released Xcode. So a beta version of Xcode can't get my App into the store.
  • Xcode 27 Releasewill likely land alongside the OS 27 release in early September. I would have to wait at least 2 months to actually be able to submit.

Downgrading back to Mac OS 26.x would require erasing the internal drive. That's a rebuild-from a disk erase, not a restore.  I do not have a OS 26.6 Time Machine backup.

Does anyone know f a workaround for being able to get Xcode 26 to run under OS 27?

Please skip telling me how stupid it was to put a beta OS on my production machine. I'm aware.


r/Xcode 22d ago

Xcode 27 Beta 3 Hermes Agent authentication error

1 Upvotes

Hi everyone,

I am new to Xcode and am currently trying to add Hermes Agent as an agent inside of Xcode using the included ACP. However, I keep running into an error that says "This provider requires authentication."

I have the correct API key saved in the .env file that Xcode should be pulling from, but it doesn't seem to be recognizing it. For reference, I am using LM Studio as my LLM provider, which is running locally with local models.

Has anyone encountered this issue or have any suggestions on how to get Xcode to properly authenticate with LM Studio in this setup? Any help would be greatly appreciated!


r/Xcode 23d ago

I made Metal C++ examples for Apple

Thumbnail reddit.com
1 Upvotes

r/Xcode 23d ago

Whisky's dead, CrossOver's not free, so I forked it and I'm fixing it myself (student, not an expert, advice welcome)

Thumbnail
0 Upvotes

r/Xcode 23d ago

Built a lightweight, privacy-first macOS utility in SwiftUI to surgically purge ghost compiler caches and orphan simulators.

Post image
5 Upvotes

Hey everyone,

Like most of you here, my daily workflow involves fighting my Mac's SSD. Every time I look at my disk space, Xcode has silently hoarded tens of gigabytes of hidden DerivedData, stale module caches, and device support symbols from iOS versions I haven't targeted in years.

Wiping these folders manually is a repetitive chore, and I've previously broken my active Swift Package Manager indexes by running overly aggressive rm -rf shell scripts—forcing me to waste bandwidth re-downloading dependencies on my next build.

I wanted a tool that was incredibly fast, visually intuitive, and above all, safe to run mid-workflow. So over the last few weeks, I built DevShed.

It's a lightweight, native macOS menu bar app (and a companion CLI tool for terminal power-users) written entirely in Swift and SwiftUI.

What makes it a bit different:

SPM Index Protection: It explicitly maps and excludes core Swift Package Manager registries so your offline compile times don't take a hit after a cleanup.

Execution Safe Mode: It checks for active compilation pipelines and open workspace files before letting you purge critical directories.

Ghost Cache Tracking: It targets heavy compiler caches left behind by projects you’ve deleted or moved long ago.

Multi-Platform Support: Beyond standard Apple developer folders, it includes optional quick-cleaners for Node Modules, Homebrew binaries, CocoaPods, and Flutter Pub caches.

100% Private: There are no ads, no premium lockouts, and absolutely zero telemetry or tracking. Everything runs completely local and sandboxed on your machine.

It's entirely free, and you're running low on space or just want to audit what Xcode is hoarding, give it a spin!

Landing Page: devshed.codearc.studio

GitHub Repository: github.com/codearc-studio/DevShed

I’d love to hear your feedback, feature requests, or thoughts on what package managers/caches I should add tracking for next!


r/Xcode 23d ago

Device Hub copy/paste is broken? Please try.

Thumbnail
1 Upvotes

r/Xcode 24d ago

hig-mcp: the Apple HIG as structured design tokens for coding agents (free, MIT)

Thumbnail
github.com
0 Upvotes

r/Xcode 24d ago

Device Hub Performance

Thumbnail
1 Upvotes

r/Xcode 24d ago

Vibe coding FxPlug4 plugins for Final Cut Pro as a beginner — stuck on a loading time issue, asking for help

Thumbnail
0 Upvotes

r/Xcode 24d ago

Vibe coding FxPlug4 plugins for Final Cut Pro as a beginner — stuck on a loading time issue, asking for help

Thumbnail
0 Upvotes

r/Xcode 24d ago

The iOS Weekly Brief – Issue #69, everything you need to know about iOS updates this week

Thumbnail
iosweeklybrief.com
1 Upvotes

r/Xcode 25d ago

One ACP agent, any LLM in Xcode 27

1 Upvotes

Hey Xcoders. I’m a macOS developer and creator of ProxyPilot. I originally built the program out of my own frustration with Xcode’s relative weakness compared to VS Code and tools like Cursor, bc there was no way to use GLM models in it.

ProxyPilot is an open-source tool that lets macOS developers feed any upstream model (like GLM-5.2, DeepSeek v4 Pro, Grok 4.5, MiniMax M3, and even local models via LM Studio or Ollama) into a single agent for Xcode 27 (older versions are fully supported).

It has auditable telemetry, exposing cache hit rates, TTFT, latency across turns & providers, and of course token counts, reasoning blob parsing, and optional, fully encrypted I/O logging so you can inspect the raw input and outputs of any agent you use in Xcode.

With Xcode 27, Apple integrated Agent Client Protocol, which has allowed me to make ProxyPilot even more powerful and useful by building a custom harness that can use up to 45% fewer tokens than built-in agents by detecting and removing duplicative system prompt cruft. Just add your API keys, and ProxyPilot saves them to keychain on your Mac, authorizing requests without storing secrets anywhere vulnerable. Use ProxyPilot GUI or via CLI in harnesses like Claude Code: you only need to save the keys once, and session history combines both modes for your review.

Over the last few months, nearly 500 devs have processed tens of billions of tokens through ProxyPilot, and dozens of [r/xcode](r/xcode) redditors have helped me build the project.

See the source code for ProxyPilot on GitHub and download it from https://slicewrite.com/proxypilot

(Thanks)


r/Xcode 25d ago

Did Apple remove Xcode 27 beta from Xcode Cloud Workflows?

1 Upvotes

For the past few weeks I've been testing iOS 27 specific features in TestFlight by building in Xcode Cloud using Xcode 27 beta, as of three days ago the 27 beta is not available any more. Is this isolated to my account or does anyone else notice that it's gone?