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

Xcode Documentation

Posts under Xcode subtopic

Post

Replies

Boosts

Views

Activity

Request for Support of Multi-MCP Integration and AI-Powered Code Automation in Xcode 26
Hello, I appreciate the enhanced productivity brought by ChatGPT and Claude AI integration in Xcode 26, which assists with code completion, refactoring, and documentation directly within the IDE. However, in real-world development environments, teams use a variety of MCP (Model Context Protocol) collaboration tools such as Jira, GitHub, Notion, and Confluence. Currently, there is no official, seamless integration of multiple MCP services with the AI features inside Xcode. For example, it would be extremely beneficial if: AI could automatically fetch and understand issues, tickets, documents, and code context from multiple MCP services, Perform related code modifications, pull request creation, and documentation updates All done intuitively and with minimal steps directly from Xcode. I kindly request that future Xcode releases provide official support for connecting to various MCP APIs, enabling smoother collaboration between AI and multiple team productivity tools all within the IDE environment. Thank you for considering this enhancement.
1
0
105
4d
LLDB RPC Server crashing
Hi I am seeing an LLDB crash in the RPC server. I have tried to update and restart everything but I am still seeing this problem. I have break points setup around code that is invoked when a WKWebView based code is being loaded. There does not seem to be a specific state the debugger crashes in and it is hard to isolate any changes in the code base. A collegue also managed to reproduce the crash. Ever so often it will be successful on then to crash on a subsequent run. This has happened on Device and simulator. We suspect that maybe a library change may of caused debug symbols to be missing or something like that. What options to I have to debug the root cause of this crash?
2
0
79
3w
How to debug apps with Xcode only using USB?
Hello. I am using Xcode 26.0 (17A324) with an iPhone 13 mini with iOS 26.0 (23A341). Due the network policies where my computer is at this moment, I am not able to prepare this iPhone to debug applications with Xcode over WiFi. There is no way to connect my computer to this iPhone over Wifi, just using the USB cable. My question is: how to debug applications in this situation, only using the USB cable? Every time I try to prepare this iPhone to be a available device to Xcode I received this error: " Browsing on the local area network for iPhone (2), which has previously reported preparation errors. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac. The device must be opted into Developer Mode to connect wirelessly. Unable to copy shared cache files Domain: com.apple.dt.deviceprep Code: -33 User Info: { DVTErrorCreationDateKey = "2025-09-22 11:57:35 +0000"; NSLocalizedRecoverySuggestion = ""; "com.apple.dt.DVTCoreDevice.operationName" = dtfetchsymbols; } The operation couldn’t be completed. No route to host Domain: NSPOSIXErrorDomain Code: 65 Failure Reason: No route to host System Information macOS Version 15.6.1 (Build 24G90) Xcode 26.0 (24228) (Build 17A324) Timestamp: 2025-09-22T08:57:35-03:00 " Thank you!
0
1
62
3w
Xcode is already installed, but it keeps showing the “install components” screen — anyone else?
My native language is not English, so apologies if I say anything wrong. (The screenshot is for illustration only.) I’m currently using Xcode 16.4 (16F6). Inside Xcode, macOS 15.5 is shown as built-in, and the Predictive Code Completion Model is already installed. But even though I already installed Xcode before, and even ran the simulator components once, in the past few days whenever I open a project or run the simulator, this “Select the components you want to get started with” screen suddenly pops up again. At the bottom it even shows “installed,” but I can’t do anything else except click Install. When I click it, it says “Installing system components,” but it finishes very quickly. I just want to know why this keeps happening. The only things I did recently were updating to macOS 26 and installing Xcode Command Line Tools 26. Could these be related? Do I need to worry about this? Thanks!
1
1
46
3w
Performance of Web View inside of iOS shell
We are working on an internal enterprise iOS application which we need to host a pretty complex web page inside. We have been reading regarding the WKWebView and how it performs inside of iOS shell, but there is no real data on what are the limitation of the WKWebView in terms of memory for the hosted Web Page. Let's say we could measure our iOS app before the WKWebView is launched and after it is launched. We see that the memory consumption of the web page loaded into WKWebView is X mb. How would we know that iOS would allow an app with such webpage loaded into WKWebView and won't terminate the app which the web page is loaded. Is there any documentation regarding on what is the maximum allowed memory for the web page which is hosted inside of WKWebView? And another question, for the Enterprise Developer Program are there any ways to increase the limit of the memory a specific iOS app is allowed to consume before it is terminated from iOS device due to low memory warning from iOS?
0
0
30
3w
+ button not there to add objects
Using Xcode 26 (17A324) I can no longer bring up the Object Library with the '+' at the top right because it is not there. I can use Cmd-Shft-L but how do I make the '+' appear again. The '+' you can see in this screenshot is just for Tabs and Editor pains
1
0
160
4w
Error trying to connect to LM Studio running on another Mac
I have Xcode 26 on one Mac, but LM Studio running on another. LM Studio does not have an api key so I have provided "dummy-api-key" but whenever I try to connect, it gives the error "Models could not be fetched with the provided account details" I have the IP and port (1234) of LM Study The server in LM Studio is running. Has anyone got this to work? And if so, what details did you enter?
1
0
87
Sep ’25
Xcode 16.x crashes immediately on launch - MacBook Pro 15,4 mid-2019
Hardware & OS: MacBook Pro 15,4 (mid-2019) macOS 15.7 (24G222) Apple Hardware Diagnostics: Passed (ADP000) Xcode crashes on every launch attempt with identical CoreSimDeviceIO framework failures. This started after an automatic Xcode update and affects multiple Xcode versions. Versions tested (all crash identically): Xcode 16.0 (26.0/24228) Xcode 16.4 (23792) *Unable to download Xcode 15.4 due to my ios Crash signature: Exception Type: EXC_BAD_ACCESS (SIGKILL Code Signature Invalid) Crashed Thread: 0 (main thread) Crashing Framework: CoreSimDeviceIO.framework Termination Reason: CODESIGNING, Code 2 Invalid Page Troubleshooting completed: Multiple fresh Xcode downloads from Apple Developer portal Security database rebuild and SystemPolicy reset Complete macOS clean reinstall Developer tools reset (xcode-select) NVRAM reset Hardware diagnostics (passed) Additional problem: macOS compatibility enforcement prevents installing Xcode 15.x as a workaround, showing "update to latest version" errors even for properly downloaded older versions. Current status: Unable to perform iOS development. Bug report submitted to Apple (FB# FB20308027). Has anyone with similar MacBook Pro hardware (mid-2019) encountered this? Any successful workarounds for the CoreSimDeviceIO crash or compatibility enforcement blocks? Is there something that I am missing?
1
0
110
Sep ’25
Can´t access Swift classes in a C++ wrapper
(Related to Feedback FB20304546) I´m having problems trying to use the C++ integration to Swift. I´m tring to create a C++ wrapper for a Swift class. I followed the instructions in the "Mix Swift and C++" video and other resources, but I can´t see the Swift class in my C++ code. I´ve had many problems finding where the generated header is, and how to check the right way to call the symbols in a library. The code is in the Feedback assistant, but if somebody knows more references such as the previous one that I can read, I´ll check... Any help will be much appreciated.
0
0
62
Sep ’25
xcodebuild - xcresult equivalent for the build action?
I just discovered xcresulttool - provided with the Xcode Command Line Tools. It does an amazing job generating a JSON report of warnings/failures. The tool requires a xcresult file path - my issue is that xcodebuild build does not produce an xcresult file so I can't find a way to generate a similar report for that action. My use case is simple - in my CI job, I want to report back on specific failures during builds and tests. I run xcodebuild build-for-testing and then later xcodebuild test-without-building. If there is a failure during the test phase, I can easily parse the issues from the JSON report in xcresult. However, if there is a failure during build, there is no result file to parse from. What is more confusing is that if you run xcodebuild test (build and test in one command) compilation errors are put in the xcresult file and you can read them just fine with xcresulttool. Is there any way to get a failure report from xcodebuild build actions without parsing stdout/stderror? I am aware of 3rd party tools such as xcpretty or xcbeautify - I would like to avoid anything that requires parsing the output.
0
0
72
Sep ’25
iOS 26 Share Extension error
I get an error when using Share Extension to share images in iOS 26. It works fine in iOS 18. The error message is: Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=2 "Could not find attribute name in domain plist" UserInfo={NSLocalizedFailureReason=Could not find attribute name in domain plist}>. What should I do? My plist file looks like this: NSExtension NSExtensionAttributes NSExtensionActivationRule NSExtensionActivationSupportsImageWithMaxCount 1 NSExtensionMainStoryboard MainInterface NSExtensionPointIdentifier com.apple.share-services
0
0
114
Sep ’25
iOS 26 Share Extension error
I get an error when using Share Extension to share images in iOS 26. It works fine in iOS 18. The error message is: Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=2 "Could not find attribute name in domain plist" UserInfo={NSLocalizedFailureReason=Could not find attribute name in domain plist}>. What should I do? My plist file looks like this: NSExtension NSExtensionAttributes NSExtensionActivationRule NSExtensionActivationSupportsImageWithMaxCount 1 NSExtensionMainStoryboard MainInterface NSExtensionPointIdentifier com.apple.share-services
1
2
246
Sep ’25
Xcode Devices "Download Container" no longer works on latest Xcode 26.0 (24228) (Build 17A324)
After updating my Xcode to the latest, I am unable to download an installed app container from the Xcode Devices screen. This currently works with older versions of Xcode with the same app on the same iPad. This worked with older versions of Xcode on the same MacBook as well (including the Xcode 26 beta before updating to the official release yesterday) The specified file could not be transferred. Domain: com.apple.dt.CoreDeviceError Code: 7000 User Info: { DVTErrorCreationDateKey = "2025-09-18 20:31:01 +0000"; NSURL = "file:///Users/thomsk2/Desktop/com.test.polarisdev%202025-09-18%2015:30.53.744.xcappdata/AppData/Library/Caches/"; } The specified file could not be transferred. Domain: com.apple.dt.CoreDeviceError Code: 7000 User Info: { NSURL = "file:///Users/thomsk2/Desktop/com.test.polarisdev%202025-09-18%2015:30.53.744.xcappdata/AppData/Library/Caches/"; } Failed to perform I/O operations. Domain: com.apple.dt.remoteservices.error Code: 11001 Failure Reason: Cannot open destination file /Users/thomsk2/Desktop/com.test.polarisdev 2025-09-18 15:30.53.744.xcappdata/AppData/Library/Caches/com.apple.dyld/standaloneapp.ios.dyld4: Permission denied System Information macOS Version 15.6.1 (Build 24G90) Xcode 26.0 (24228) (Build 17A324) Timestamp: 2025-09-18T15:31:01-05:00
2
3
131
1w