Build, test, and submit your app using Xcode, Apple's integrated development environment.

Xcode Documentation

Posts under Xcode subtopic

Post

Replies

Boosts

Views

Activity

LLDB and environment variables in Xcode
Hey! I am writing type formatting scripts in Python for lldb, as described in https://lldb.llvm.org/use/variable.html#python-scripting. I'm trying to pass an environment variable to lldb from Xcode to determine the path to the scripts in the project root, so the project is not bound to some predetermined path. I am having trouble doing this in Xcode. What I have tried: lldbinit file Create a .lldbinit file in $(SRCROOT) with the following content: platform shell echo $SRCROOT. Set the path to the .lldbinit file in Edit Scheme... > Info > LLDB Init File ($(SRCROOT)/.lldbinit). Set the SRCROOT environment variable to $(SRCROOT) in Edit Scheme... > Arguments > Environment Variables. entry-point breakpoint Add a breakpoint to the entry-point of the application. Set the Automatically continue after evaluating actions option. Add the action platform shell $(SRCROOT) or platform shell $SRCROOT. Set the SRCROOT environment variable to $(SRCROOT) in Edit Scheme... > Arguments > Environment Variables. What I expect to happen: The first line of the debug console is a path pointing to $(SRCROOT) What actually happens: No path is output Is this functionality available in Xcode Version 26.0.1 (17A400)? Thanks in advance, Barnabas
3
0
225
Nov ’25
Unable to create SwiftUI previews in Xcode 26 for iOS 15.5
I am getting this error msg when I try to run a SwiftUI Preview on an iOS 15.5 simulator: Termination Reason: Namespace DYLD, Code 1, Library missing | Library not loaded: /usr/lib/swift/libswift_StringProcessing.dylib | Referenced from: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libLiveExecutionResultsLogger.dylib | Reason: tried: '/Users/hfg/Library/Developer/Xcode/DerivedData/Testios15sim-aawlbfbtggzozseoekycwwpadhrc/Build/Intermediates.noindex/Previews/iphonesimulator/Testios15sim/Products/Debug-iphonesimulator/libswift_StringProcessing.dylib' (no such file), '/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 15.5.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/libswift_StringProcessing.dylib' (no such file), '/usr/lib/swift/libswift_StringProcessing.dylib' (no such file), '/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 15.5.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libswift_StringProcessing.dylib' (no such file) FYI I tried with the Legacy Preview Execution both on and off
1
0
123
Nov ’25
I am unable to download any xcode component.
CRITICAL: iOS 26.1 Simulator Runtime (Build 23B86) Missing / MobileAsset Catalog Failing Summary After updating macOS and Xcode, I can no longer download or install the required iOS 26.1 simulator runtime. The Xcode Components system fails for all assets, and the MobileAsset catalog for iOS simulator runtimes appears to be missing or invalid. The runtime is also not listed on developer.apple.com. This issue blocks me from running any iOS simulators. Steps to Reproduce Update to: macOS 26.1 (25B78) Xcode 26.1.1 (24455 / 17B100) Open Xcode → Settings → Platforms/Components Attempt to download: iOS 26.1 Simulator Runtime Any other downloadable component (e.g., Predictive Code Completion Model) Alternatively, try using: xcodebuild -downloadPlatform iOS -exportPath ~/Downloads xcodebuild -downloadPlatform iOS -buildVersion 26 Observed Behaviour Xcode Components Downloads Fail Attempting to download the iOS 26.1 runtime results in: Download failed. Domain: DVTDownloadableErrorDomain Code: 41 Additional detail: Failed fetching catalog for assetType (com.apple.MobileAsset.iOSSimulatorRuntime) Domain: DVTDownloadsUtilitiesErrorDomain Code: -1 And: Download failed due to a bad URL. Domain: com.apple.MobileAssetError.Download Code: 49 User Info: { checkConfiguration = 1 } Predictive Code Completion Model Also Fails The operation couldn’t be completed. (IDELanguageModelKit.IDEModelDownloadAdapter.DownloadError error 2.) Domain: IDELanguageModelKit.IDEModelDownloadAdapter.DownloadError Code: 2 There was an error transferring over the network. Code: 2 CLI Downloads Fail Command: xcodebuild -downloadPlatform iOS -exportPath ~/Downloads Result: DVTDownloadable: Download Failed … iOS 26.1 Simulator (23B86) Command: xcodebuild -downloadPlatform iOS -exportPath ~/Downloads -buildVersion 26 Result: iOS 26 is not available for download. Runtime Not Listed on Developer Downloads The following page does not list iOS 26.1 simulator runtime: https://developer.apple.com/download/all/ Expected Behaviour Xcode should be able to fetch the MobileAsset catalog and download iOS 26.1 simulator runtime. The runtime should appear in the Components tab and on developer.apple.com/download/all/. CLI tools should successfully download the platform. System Information macOS: 26.1 (Build 25B78) Xcode: 26.1.1 (24455) (Build 17B100) Timestamp: 2025-11-17 Impact This issue currently prevents: Running any iOS simulator Testing or building on the required runtime Using other Xcode downloadable components (language models, etc.) This is a blocking issue for development. Notes Multiple Xcode reinstallations attempted macOS restarts performed Network connectivity normal Issue persists across all download methods (GUI + CLI)
0
1
116
Nov ’25
Can Live Activity Enable Continuous Nearby Interaction (UWB) in Background with Third-Party Accessories?
Hi, I'm working on an app that integrates third-party UWB accessories using the Nearby Interaction framework. I want to display real-time data via Live Activities, and ideally, I hope the app can continue ranging/interacting with the accessory even when it's in the background—triggering updates in the Live Activity. Specifically: Can I use Live Activity to keep Nearby Interaction sessions running in the background, as long as the accessory is still nearby and connected? Or do I always need to initiate sessions in the foreground? Are there ways to maintain or trigger new Nearby Interaction sessions entirely in the background, when using third-party UWB accessories? Is there any official guidance regarding permissions, user authorization requirements, or restrictions for background ranging with third-party hardware? Are there recommended strategies or patterns for updating Live Activity widgets with data from Nearby Interaction or UWB accessories while backgrounded? (e.g. Bluetooth triggers, push notifications, background tasks) Any advice, experiences, or official recommendations would be greatly appreciated! I want to ensure my implementation is compliant and offers the best possible user experience. Thanks!
0
1
71
Nov ’25
Xcode Behaviors are BROKEN
What possessed Apple developers to redesign the Behaviors UX? It is not as flexible, and at least Custom Behaviors do not work all the way through 26.2beta. You cannot name or rename behaviors. It just keeps "New Behavior." You cannot delete behaviors. Running shell scripts does not work. I gave up after that. Why was the Xcode 16 model changed and NOT TESTED!
2
0
115
Nov ’25
Failed to retrieve development teams for
Hey everyone, after signing in to my Apple Account in Xcode and I click on it, I keep getting the "Failed to retrieve development teams for xyz". I have a developer account (Individuals), however not paid one yet as I'm not that close to finish my app. I'm using the latest version of everything, signed out and back in multiple times from my accounts. Any idea why this is happening and how to fix it?
1
0
187
2w
Xcode debugger stops at dyld after upgrading to Xcode 26
After upgrading to Xcode 26, started getting an issue where Xcode debugger is stopping at dyld`lldb_image_notifier Does not happen on device. Tried cleaning derived data folder, clean build but no success. what could be the cause? this is from the stack. #0 0x0000000207e0ffa1 in lldb_image_notifier () #1 0x0000000207e11c49 in dyld4::ExternallyViewableState::triggerNotifications () #2 0x0000000207e13a2f in invocation function for block in dyld4::ExternallyViewableState::notifyMonitorOfImageListChangesSim(bool, unsigned int, mach_header const**, char const**) () #3 0x0000000207e10c3b in dyld4::ExternallyViewableState::notifyMonitorOfImageListChangesSim () #4 0x00000001102b9195 in dyld4::ExternallyViewableState::triggerNotifications () #5 0x00000001102b9465 in dyld4::ExternallyViewableState::addImages () #6 0x000000011029dcec in dyld4::RuntimeState::notifyDebuggerLoad () #7 0x00000001102b8065 in dyld4::APIs::dlopen_from(char const*, int, void*)::$_0::operator()() const::'lambda'()::operator()() const () #8 0x00000001102b71fd in dyld4::APIs::dlopen_from(char const*, int, void*)::$_0::operator()() const () #9 0x00000001102b30e3 in dyld4::APIs::dlopen_from () #10 0x00000001199b4c5e in _CFBundleDlfcnLoadFramework () #11 0x0000000119982a1e in _CFBundleLoadExecutableAndReturnError () #12 0x0000000115f081c4 in -[NSBundle loadAndReturnError:] () #13 0x00000001a3c42866 in -[NSBundleAccessibility loadAndReturnError:] () #14 0x000000013cd67fa7 in __50-[AXCodeItem loadWithStrategy:onQueue:completion:]_block_invoke_2 ()
1
0
109
2w
Xcode 26 | Coding Intelligence: Signing into ChatGPT Enterprise account yields error message
Hello, When trying to login into my ChatGPT Enterprise account within Xcode 26 to setup Coding Intelligence, after credentials and OTP have been accepted, I'm getting the following error message from ChatGPT/OpenAI: Route Error (400 ): { "error": { "message": "No eligible ChatGPT workspaces found.", "type": "invalid_request_error", "param": null, "code": "chatgpt_account_missing" } } What am I missing here? Any help is highly appreciated. Thank you!
0
0
64
Nov ’25
Xcode on external drive
Hello On Nov 11, 2025 I upgraded Xcode to 17B100 I found instructions to install it on an external drive because the old way of doing it (install to /Applications and move it to the desired location) didn't work. I downloaded the dmg, moved it to the external drive and the install worked I now have a usable Xcode sitting on my external drive The problem is, there are no simulators and the normal method of downloading them does not work. How do I install simulators (preferably on my external drive) for use by my externally installed Xcode (same drive)?
1
0
76
Nov ’25
90714: Invalid binary.
90714: Invalid binary. The app contains one or more corrupted binaries. Please rebuild the app and resubmit. 我开发的OC项目,三个月前打包分发还没有问题,半个月前开始就一直报这个错。查了很多资料都无法解决,所有的SDK也都升级了,还是报这个错,麻烦Apple的工程师帮忙指正一下问题,如何解决这个问题。
7
0
312
2w
New Xcode lost support of old iOS versions
I cannot install ios device support using Xcode-Settings-> Components. I lost my support for my ios devices. My system ran low on disk space. All of a sudden my Schemes only show Get IOS support for my iPad and iPhone. Both devices run older ios versions : 18, 16. Any ways the Xcode-Settings-> Components just tries to force me to update ios. I don't want ios 26 yet as my app I developing does not play well with it. I may try the remove XCode, restart Mac and fresh install xcode 26 to see if this fixes it. Unpairing/Repairing devices to mac does not start the autodownload of the support files.
1
0
96
Nov ’25
Core audio for using to record Multitrack audio.
Hello, I’ve looked at a video and have tons of research and I’m trying to see if there is a way core audio can be created in Xcode as an audio device? “keep in mind” I am totally new to apple’s developer forums and I do not know anything about Xcode nor on how to create an audio device of coreaudio on a Mac since there’s a lot stuff that has do with coding. Nor am I good with that type of technology.
1
0
94
Nov ’25
In Simulator on status bar red banner with rdar:45025538
Out of nowhere I got some red banner on top of my iPhone 13 mini / iOS 17.5. I cannot pin point the root cause of this. What I can say is that it only happens to Simulators of a certain type, e.g. iPhone 12 and 13 mini, but not iPhone 14 for example. I have installed Xcode 26.1.0 and 26.1.1, out of which 26.1.0 is selected: $ xcode-select -p /Applications/Xcode-26.1.0.app/Contents/Developer And following runtimes: $ xcrun simctl runtime list == Disk Images == -- iOS -- iOS 17.5 (21F79) - CF933623-A258-44F8-B248-C0F25C0C343B (Ready) iOS 26.1 (23B80) - D11C3CDC-EE3D-44CC-8B92-9B7D00B54B0B (Ready) Total Disk Images: 2 (14.6G) Installing the newer 26.1 23B86 runtime doesn't help either.
15
1
899
2d
Swift version wrong in Xcode 26.2 beta
Release notes of Xcode 26.2 https://developer.apple.com/documentation/xcode-release-notes/xcode-26_2-release-notes state that Swift 6.2.3 is shipped with it. But when trying to check the Swift version with #if swift(>= 6.2.3) it returns false. Running swiftc -version returns swift-driver version: 1.127.14.1 Apple Swift version 6.2 (swiftlang-6.2.3.3.2 clang-1700.6.3.2) As you can see, there is a mismatch between the marketing version "6.2" and the build version "6.2.3.3.2". Being able to check for the 6.2.3 version is important for my team, because we are impatiently awaiting the change to the tabviewbottomaccessory modifier https://developer.apple.com/documentation/swiftui/view/tabviewbottomaccessory%28isenabled:content:%29 so that it can be hidden when not needed. Without this fix we have the issue that the accessory shows even without content in iOS 26.1.
0
1
100
Nov ’25
Xcode and Open Ai issue (Chat GPT) - Xcode Intelligence with ChatGPT became extremely slow after update
Hi everyone, In the previous Xcode version, I was using Intelligence with ChatGPT to refactor and fix code. It worked great: it applied changes across files in a few seconds and the code preview updated quickly. In the new Xcode version, something strange is happening: • With Claude, responses are almost instant. • With ChatGPT, it starts fine but then it shows the entire file instead of just the relevant section and, after a few lines, it starts streaming character by character, becoming extremely slow. This only started after updating Xcode. Is there any setting (streaming, token limits, formatting, etc.) that I can tweak to get ChatGPT back to the previous performance? Is anyone else seeing this issue with ChatGPT in Intelligence, or is it just my setup? Thanks in advance for any help!
2
1
97
Nov ’25