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

Xcode Documentation

Posts under Xcode subtopic

Post

Replies

Boosts

Views

Created

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
92
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
91
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.
10
1
607
Nov ’25
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
96
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
94
Nov ’25
Notarization for Direct Distribution Stuck “In Progress” for Hours
Hey everyone, I’m trying to notarize a macOS app for direct distribution through Xcode, and the notarization step has been stuck on “In Progress” for hours now. The upload completed fine, but since then I haven’t gotten any feedback at all: no email, no notification. Organizer just shows: Status: In Progress I’ve tried closing/reopening Organizer, and even re-archiving the app, but it always sits in the same state. Is this just a delay on Apple’s side, or is there something I might have misconfigured? Any tips on how to get more insight into what’s going on? Thanks!
1
0
61
Nov ’25
iPhone shows as “Unavailable” in Xcode 26.1.1 (macOS 15.6.1)
My iPhone no longer works for on-device debugging. This same phone, same Mac, and same cable worked before. Now Xcode always shows the device as Unavailable. System: • macOS 15.6.1 • Xcode 26.1.1 (17B100) • iPhone on iOS 26.0.1 with Developer Mode enabled • Direct USB-C connection, trust prompt appears normally Symptoms: The device appears in Xcode and in devicectl, but always in the “unavailable” state. JSON output shows pairingState: unsupported and ddiServicesAvailable: false, meaning USB sees the phone but debugging services won’t start. Already tried: • Reinstalled Xcode • Reset trust on both Mac and iPhone • Toggled Developer Mode • Reset Location & Privacy • Cleared pairing records in /var/db/lockdown • Restarted usbmuxd • Deleted ~/Library/Developer and /Library/Developer • New cable, direct port, phone unlocked • Full Mac reboot None of these changed anything — the device stays unavailable. Question: Has anyone seen iOS 26.x devices stuck as “Unavailable” in Xcode 26.1.x? Is there a known CoreDevice/devicectl issue on macOS 15.6.1? Any fix that does not involve wiping the phone? Thanks!
0
1
74
Nov ’25
We have a problem
Lots of pepole is wait for Xcode to be in for 15 years. And peole and kids especially me are crying about it swift is the worst its good but you can’t change the screens iPhone Xcode is better so how do I get Xcode for iPadOS?
1
0
121
Nov ’25
Installing .xcappdata to simulator in Xcode Version 26.1.1 (17B100)
I'm attempting to install a previously downloaded .xcappdata to my running application on the iPadOS Simulator (running iPadOS 26.1), but the app data won't transfer to the simulator. I've created the Xcode basic iPadOS app template, without any code modifications - adding some items to the list and downloading the .xcappdata from an attached iPad (running iPadOS 26.1). I can remove the app from the iPad and re-attach the .xcappdata to the physical iPad - no issues there. The issues I'm having is when trying to attach the app data on a simulator. Steps I've tried: Manually drag and dropping the .xcappdata file to the simulator. I get a popup saying "Simulator device failed to install application data container." Attaching the .xcappdata through Xcode in the "Edit Schemes"->Options->App Data App starts fresh without any errors or items from the .xcappdata file Installing the .xcappdata file through the command line through xcrun simctl install_app_data <SIM_DEVICE_ID> <MY_XCAPPDATA> This gives an error: Simulator device failed to install application data container. Could not get the existing data container location for the app. Container manager error code: 55 Underlying error (domain=com.apple.containermanager, code=55): Failed to install the requested app data package Could not get the existing data container location for the app. Container manager error code: 55 I can however reach the "data container location" through the xcrun simctl get_app_container command, leading me to think there are some issues with underlying permissions?
0
0
92
Nov ’25
In the process of using xcode, I encountered a problem and urgently needed help.
In the Swift UI tutorial on the official website of apple developers, https://developer.apple.com/tutorials/swiftui/creating-and-combining-views, Step 2 in Section 2, through Command-Control-click, the full menu in Figure 1 cannot appear, but the style of Figure 2 appears, and the "Show SwiftUI Inspector" option is missing, see Figure 2. Similarly, in Step 6 of Section 2, "Control-clicking on the Text declaration in the code editor", the options in the red box in Figure 3 cannot appear, and It is the style of Figure 4, and all the options in the red box of Figure 3 are missing. There is no one in Show Coding Tooks. I am using Macbook air 2020 M1, macOS is the latest Tahoe 26.1, and the xcode version is 26.1. The project files used in the learning tutorial are downloaded directly from the above link. Thank you very much for your help to a beginner, which is very urgent for me. I look forward to your reply and sincerely thank you again.
1
0
115
Nov ’25
Where are the asset catalog resources stored at runtime?
When I first load my app, where are the assets for, say, images, located? Is it somewhere where loading them in the UI is never a performance issue and can always be done in the main thread? (e.g. even if there were 100 assets loaded at once) I’m assuming it’s safe to load assets from asset catalog in main thread but I want to double check and also learn more.
2
0
81
Nov ’25
Cannot Preview in this file. Simulator was shutdown during an update.
Hello, I am facing a recurring issue with Xcode iOS simulator (preview). I want to preview a SwiftUI for iOS in Xcode, but the Simulator app fails to boot up. I receive the following error in Xcode: Cannot Preview in this file. Simulator was shutdown during an update. I have tried the following: Completely uninstalling XCode and deleting all developer data, then reinstalling everthing again. Shutdown and restart Deleting all developer data, deleting XCode cache Reinstalling iOS Simulator runtimes and reconfiguration of simulators. Tested using different simulator and runtime versions. "xcrun simctl --set previews delete al" My reported issues: FB20987522 FB20485454 Thank you Best regards, Jens
3
0
109
Nov ’25
Cannot Preview in this file. Simulator was shutdown during an update.
Hello, I am facing a recurring issue with Xcode iOS simulator (preview). I want to preview a SwiftUI for iOS in Xcode, but the Simulator app fails to boot up. I receive the follow error in Xcode: Cannot Preview in this file. Simulator was shutdown during an update. I have tried the following: Uninstall Xcode and reinstall it again Deleting all developer data Deleting Xcode cache Reinstalling iOS Simulator runtimes and reconfiguration of simulators. Tested using different simulator and runtime versions. "xcrun simctl --set previews delete al" I reported the issue: FB20485454 FB20987522 Thank you. Best regards, Jens
0
0
58
Nov ’25
Code Coverage Not Accurate in Xcode 26
Description: I’m noticing that the code coverage metrics in Xcode 26 are not accurate compared to earlier versions. In Xcode 15, the same set of unit tests shows around 38% coverage, but in Xcode 26, even though all the tests are running successfully (for example, the SegmentedUI test cases), the code coverage is displayed as 0%. Has anyone else observed this behavior in Xcode 26? Is there any known issue, workaround, or configuration change required to get the correct coverage report? Environment: Xcode 26 iOS 18 SDK Unit tests running under XCTest Any insights or suggestions would be appreciated.
1
3
209
Nov ’25
Code Coverage Not Accurate in Xcode 26
Description: I’m noticing that the code coverage metrics in Xcode 26 are not accurate compared to earlier versions. In Xcode 15, the same set of unit tests shows around 38% coverage, but in Xcode 26, even though all the tests are running successfully (for example, the SegmentedUI test cases), the code coverage is displayed as 0%. Has anyone else observed this behavior in Xcode 26? Is there any known issue, workaround, or configuration change required to get the correct coverage report? Environment: Xcode 26 iOS 18 SDK Unit tests running under XCTest Any insights or suggestions would be appreciated.
0
0
26
Nov ’25