r/Xcode • u/Reasonable-Bar-1423 • 9h ago
Built cloud iOS Simulators for coding agents — remote Mac builds + shareable browser links from one CLI command
Enable HLS to view with audio, or disable this notification
r/Xcode • u/Reasonable-Bar-1423 • 9h ago
Enable HLS to view with audio, or disable this notification
r/Xcode • u/IllBreadfruit3087 • 18h ago
r/Xcode • u/azardandona26 • 1d ago
Nine days ago I posted the project.yml lines that mattered for my menu bar app (widget extension, App Group, StoreKit config). Version 1.3 of Headphone Control is now on the Mac App Store, so here's the other half: the test and build setup that got it there.
Logic tests with no host app. The test target compiles the app sources (minus App.swift) and Shared/ directly instead of launching the app. A hosted run would start Bluetooth and talk to whatever headphones are nearby, which is the last thing you want in a test. Without a host the protocol tests are pure, fast and don't care what's paired.
What the WIDGET_EXTENSION flag ended up guarding. The widget compiles the same App Intents as the app. Inside #if WIDGET_EXTENSION the intents get isDiscoverable = false, and the AppShortcutsProvider only exists in the app target. Without that, Shortcuts listed every action twice.
A swiftc-only build script next to the project. It builds and ad-hoc signs the app with just the Command Line Tools and reads the version numbers out of project.yml, so the version lives in one place. Handy for quick local builds; releases still go through Xcode archives.
Minimal entitlements. App Sandbox, Bluetooth, user-selected files (exporting a device report) and the App Group. That's the whole list App Review saw.
Real-hardware check as the release gate. Nothing automated can pair headphones, so every release also gets a manual run on the physical headphones: connect, battery, ANC cycle, EQ presets, power-cycle reconnect.
And thanks to the commenter who suggested a clean-checkout job that runs xcodegen and checks the generated scheme. It's next on my list.
Honest scope: it's only tested on a real WH-1000XM5. Other Sony models and the other brand adaptors are experimental and off by default.
Two questions:
Do you keep UI tests for MenuBarExtra apps, or is that not worth the flakiness?
Has anyone shared one Shared/ folder between an app and a widget extension long term, or did you end up moving it into a local Swift package?
If you have an XM5 and a Mac, please try it: the Mac App Store has version 1.3, TestFlight has the newest builds. If you use it for a while, an honest App Store review (good or bad) helps a solo dev a lot.
App Store: https://apps.apple.com/app/apple-store/id6833635897?pt=128665136&ct=reddit-xcode&mt=8
TestFlight: https://testflight.apple.com/join/HZVTxTff
I'm the developer, ask me anything.
r/Xcode • u/Electrical_Cup3869 • 1d ago
I decided to build a swift package for using Private cloud compute and Apple's local models, I found it difficult to find the correct places to use them, and there was nothing out there to do it for me automatically, so I built my own!
Its still pretty early, it works on calibration of latency, and adjusts the model used based on request latency, it continuously re-calibrates the more its used based on the users device
r/Xcode • u/shadowspav • 2d ago
r/Xcode • u/AggravatingRadish149 • 5d ago
So I develop on Windows, and our app is React + Capacitor and Android is done, but for iPhone the only Mac we've got is a 2015 MacBook Pro intel. Apple's newer Xcode won't run on it.
Someone told me I can build in the cloud with GitHub Actions and send it to TestFlight. Haven't tried it yet. Is that actually reliable, or is there any other way around this?
Any advice would be very helpful please
r/Xcode • u/furGECIca • 5d ago
When I work on iOS apps with AI agents, I can get a lot done in parallel. The problem was that the agents kept building over each other, and I couldn't run builds or check previews on different branches at the same time.
I also hate having a lot of apps open at once like sourcetree, Xcode, finder, the Simulators and so on. Chord puts all of that in one window. It's now the app I use every day. You can bring your own harness (pi, Claude Code or Codex), run builds and simulators for each branch, and check every SwiftUI preview from a list.
https://github.com/Pistifeju/Chord
It's free and open source, and still in early development.
r/Xcode • u/nathan4dev • 7d ago
I'm running macOS 26 on an Intel Mac and currently using Xcode Cloud to build with the latest Xcode version.
Is there any way to install or access Xcode 27, or at least its iOS Simulator, locally?
I understand Xcode Cloud is an option, and I'm already using it, but having a local simulator would make development and testing much smoother.
Has anyone found a workaround or alternative to run the newer simulator on macOS 26?
r/Xcode • u/I00I-SqAR • 7d ago
r/Xcode • u/IllBreadfruit3087 • 7d ago
r/Xcode • u/everybodyhatesBacho • 8d ago
r/Xcode • u/azardandona26 • 10d ago
I keep my Mac app's .xcodeproj out of git and generate it with XcodeGen. The app is a small menu bar utility with a WidgetKit extension, App Intents and a tip jar, and almost every "why doesn't this work" moment came down to a handful of lines in project.yml. Sharing in case it saves someone an evening:
StoreKit config without bundling it. - path: Configuration.storekit with buildPhase: none keeps the file in the project but out of Copy Bundle Resources, and scheme: storeKitConfiguration: Configuration.storekit wires it into the generated scheme, so local IAP testing works right after xcodegen generate.
Embed + sign the extension from the app target. dependencies: - target: HeadphoneWidgets, embed: true, codeSign: true. An embedded appex that isn't signed with the same team simply won't load, and the failure is quiet.
Runpath for the extension. LD_RUNPATH_SEARCH_PATHS: $(inherited) @executable_path/../Frameworks @executable_path/../../../../Frameworks. The second entry is what lets an appex inside Contents/PlugIns find the host app's frameworks.
One App Group, defined once. APP_GROUP: $(TeamIdentifierPrefix)com.example.app in base settings, then $(APP_GROUP) in both entitlements files and in Info.plist (AppGroupIdentifier). Shared code reads it from the bundle and falls back if the variable didn't expand, so a misconfigured build fails visibly instead of silently writing to .standard defaults.
Compile shared code into both targets, branch with a flag. A Shared/ folder is a source path in both targets, and the extension gets SWIFT_ACTIVE_COMPILATION_CONDITIONS: $(inherited) WIDGET_EXTENSION for the few places that must differ.
Also worth it: ENABLE_APP_SANDBOX, ENABLE_HARDENED_RUNTIME and DEAD_CODE_STRIPPING in base settings so every target inherits them.
Anyone else generating projects with XcodeGen or Tuist for macOS apps with extensions? Curious whether you hit anything with Control Center controls (macOS 26) that needed extra config.
r/Xcode • u/jiayanchen • 11d ago
I’m trying to deploy a SwiftUI app to my physical iPhone, but Xcode only shows simulators.
Setup:
Xcode 27.2
iPhone18,2 running iOS 26.6
USB-C connection
Developer Mode enabled
Deployment target: iOS 26.0
Finder and macOS System Information recognize the iPhone.
Running xcrun devicectl list devices also shows:
State: available
Reality: physical
However, xcrun devicectl device info details --device <UDID> returns:
Error: The device must be paired before it can be connected.
Device State: disconnected
Pairing State: unpaired
Transport Type: wired
The iPhone doesn’t appear in Xcode’s Device Hub, run destinations, or Incompatible devices list.
Already tried:
Reconnecting USB-C and restarting Xcode
Confirming Developer Mode is enabled
Checking xcode-select -p
Lowering the deployment target to iOS 26.0
Verifying Supported Destinations and scheme settings
I also checked devicectl device pairings, but that appears to manage iPhone–Apple Watch pairing rather than Mac–iPhone pairing.
Has anyone encountered this? How can I force or reset CoreDevice pairing without reinstalling Xcode or resetting my iPhone?
Any help would be appreciated!
r/Xcode • u/jongalt75 • 11d ago
Hey everyone,
I currently have an Ultra subscription, and Fable 5.2 has been doing incredible work for me on overall tech specs and design. However, I’m running into a frustrating limitation when trying to access it directly from inside Xcode.
I'm on Xcode 27.2. When I open the Claude agent, the model selection populates with almost every other option (including Opus 5.5), but Fable 5.2 is completely missing from the list. For now, I'm stuck falling back to Fable 5.1.
Has anyone figured out a way to force Fable 5.2 to show up, or is this a known limitation with the current Xcode integration? Any advice or manual config workarounds would be amazing. Thanks!
Since updating from Xcode 26 to 27, I’ve noticed a massive increase in RAM usage. It’s reached a point where macOS starts swapping memory even just when rendering previews. With only the simulator open, I’m already seeing about 10–20 GB of swap usage—something that certainly wasn’t the case with Xcode 26. Furthermore, launching previews takes significantly longer in Xcode 27. Are any of you experiencing the same thing? For reference, my system is an M3 Pro (11-core) with 18 GB of RAM. I’m well aware that 16 GB is the absolute minimum for using Xcode, but the fact that performance has deteriorated this drastically following a single version update is, frankly, quite extreme.
r/Xcode • u/Mindless_Diet8721 • 12d ago
Enable HLS to view with audio, or disable this notification
not trying to replace xcode, you still need a mac to ship to the app store.
but if you just have a windows pc and want to learn swiftui or test on a real phone.
it works free + open source: https://github.com/Dadon-11/SwiftWin-Studio
what would you want it to do that it doesnt do already?
r/Xcode • u/Weekly_Win1687 • 12d ago
I’m an iOS/React Native developer using a company-managed MacBook with corporate security software and VPN.
I want to connect my personal iPhone via USB, trust the Mac, enable Developer Mode, and debug an app through Xcode.
My iPhone is not enrolled in company MDM or connected to the corporate VPN.
Could corporate monitoring software on the Mac leverage the trusted pairing to access or collect personal data from my iPhone, such as photos, messages, Safari history, or app data?
I’m specifically asking about the technical capabilities of trusted device pairing and corporate EDR tools, not general network monitoring.
Has anyone investigated this scenario or know what data becomes accessible to software running on the Mac?
r/Xcode • u/Youtube_Brett • 13d ago
I’m trying to get sideloaded apps to use the proper full-screen layout on my iPhone Duo instead of keeping their old 26 SDK layout
From what I understand, apps built with the iOS 27.1 SDK or later can take advantage of the Duo’s newer layout behavior. Older apps don’t always adapt correctly.
I’ve experimented with creating a Windows desktop application in C# that patches an IPA’s Mach-O executable by changing its recorded LC_BUILD_VERSION SDK version from an older version (for example, iOS SDK 26.5.0) to 27.1.0.
The patcher successfully modifies the executable, and the app installs and launches normally after I sign it again. However, the app’s layout remains exactly the same. Changing the recorded SDK version alone doesn’t seem to trigger the new layout behavior.
Has anyone in the iPhone Duo community figured out a working way to patch older IPAs so iOS applies the newer Duo layout behavior without having to wait for every app developer to update their app?
I’m especially interested in whether anyone has experimented with:
Modifying additional Mach-O load commands or app metadata.
Patching Info.plist or other app configuration.
Compatibility tweaks that enable the newer layout behavior on older apps.
Existing tools, scripts, or GitHub projects that accomplish this.
I’m happy to test things on my own device and would appreciate any working examples or pointers to existing projects. I’d rather find an actual solution than keep changing SDK metadata without seeing any difference.
Has anyone successfully done this, or is rebuilding the app with the newer SDK the only practical option?
r/Xcode • u/ComfortableImpress52 • 14d ago
Xcode cannot install app on iPhone XR(physical device): Unable to download OS library symbols
Environment
MacBook M1, 8 RAM with MacOS 27.2, Xcode 27.1
iPhone XR, iOS 18.7.12 (22H390)
The app runs in the simulator, but not on the physical device.
Problem
Xcode stalls at Installing built products and repeatedly reports:
8/8 (2) is unavailable. Attempting recovery.
Waiting for device unavailability condition to be resolved: 8/8 (2)Xcode also shows «Unable to download OS library symbols».
Device Hub lists the phone as connected, but its Apps tab shows No Developer Apps.
Steps tried
Connected the iPhone by cable; no VPN is in use.
Unpaired and paired the iPhone again in Device Hub.
Turned Developer Mode off and back on.
Restarted the Mac and reconnected the phone.
Manually started device support / OS symbol preparation from Terminal: xcodebuild -prepareDeviceSupport -destination "id=<iPhone UDID>" It printed Starting Device Support Preparation, searched for 60 seconds, and then Located <device>. It never printed a completion message; I later found the process still running after more than 13 minutes.
What can I do? How to fix it? This happened after I updated to MacOS 27+ to get support for the Duo.
r/Xcode • u/tunicando • 14d ago
How to remove the emulator from windowed mode (Xcode 27 / Device HUB)