Hi everyone,
I’m an iOS developer working on a Mac with limited storage (256 GB).
I’ve noticed that the ~/Library/Developer folder is taking up almost 90 GB, mainly due to Xcode-related content.
Inside it I see folders like:
Xcode/DerivedData
DocumentationCache
iOS DeviceSupport
UserData
CoreSimulator/Devices
Before deleting anything, I’d like to understand which of these folders are safe to clean up, and what the potential side effects might be (for example, rebuild times, simulator re-downloads, etc.).
What is the recommended best practice to manage disk space when using Xcode on a low-storage machine?
Thanks in advance for your help.
Xcode
RSS for tagBuild, test, and submit your app using Xcode, Apple's integrated development environment.
Posts under Xcode tag
201 Posts
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hi all,
I'm working on a Call Directory Extension using CXCallDirectoryExtensionContext. I want to add a list of numbers to be blocked. Here's the function I use:
override func beginRequest(with context: CXCallDirectoryExtensionContext) {
context.delegate = self
let blockedNumbers = loadNumberEntries(forKey: blockedKey)
let identifiedNumbers = loadNumberEntries(forKey: identifiedKey)
addAllBlocking(blockedNumbers, to: context)
addAllIdentification(identifiedNumbers, to: context)
context.completeRequest()
}
private func addAllBlocking(_ entries: [NumberEntry], to context: CXCallDirectoryExtensionContext) {
let numbers: [Int64] = entries.compactMap {
Int64($0.countryCode + $0.phone)
}.sorted()
for number in numbers {
context.addBlockingEntry(withNextSequentialPhoneNumber: number)
print("# Added blocking entry: \(number)")
}
}
When I run this, I see in the console:
# Added blocking entry: (*my number with country code*)
So it seems the number is added correctly. However, in practice, the number is not blocked on the device.
I’ve made sure that:
The number is stored with the country code prefix.
The extension is enabled in Settings → Phone → Call Blocking & Identification.
The extension is reloaded after adding numbers.
The array of numbers is sorted in ascending order before calling addBlockingEntry.
Despite all this, the number still isn’t blocked.
Does anyone know why the print shows the number added, but it doesn’t actually block the call? Am I missing something in the way CXCallDirectoryExtensionContext works?
Thanks for any advice!
I can find the Team ID for a registered development account by going to:developer.apple.com > Account > Membership > Team IDI'm sure that a similar ID exists for the Personal Team. If I select my personal team in xcode and then open MyProject.xcodeproj > project.pbxproj, I can find said ID by looking for DEVELOPMENT_TEAM. But this is a rather hacky way to find my personal team ID. Are there other simpler ways to find it?
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.
Hi there, ever since I updated to Xcode 26.1, I have been seeing Record UI Button that is showing up on the left hand side which I believe is a new feature.
Is there a way to hide this button ? I am using Vim bind with relative line numbers, and now I can't see which line number I am in when writing test cases...
I am using XCode (Version 26.0.1 (17A400)) -> Archive -> Distribute App (or Validate App) to upload my iOS app into App Store Connect.
However I am always getting this error:
Uploading SPI errors: Validation failed (409) The app contains one or more corrupted binaries. Rebuild the app and resubmit.
NSUnderlyingError : Validation failed (-19241) The app contains one or more corrupted binaries. Rebuild the app and resubmit.
code : STATE_ERROR.VALIDATION_ERROR
I tried exporting the app as an IPA and uploading with Transporter, but I see the same error.
I couldn't find any other useful logs or error messages.
More info:
I have created the app in App Store Connect and this is my first time uploading.
The app can build and run on my physical phone and emulator without any problem.
Would be great to get some help!
Thanks!
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags:
App Store Connect
Xcode
App Submission
Hell Apple Developer Community,
I need help with the Upload of my Project to AppStore Connect. I’ve got an Error Message, that tells me something is missing in the Info.plist file. Can somebody help me?
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags:
App Store Connect
Xcode
App Submission
Background Tasks
I am developing a binary SDK for consumption by others. When we updated to Xcode 26, any builds which are generated cannot be consumed by Xcode 16.
The specifics lie in the optionals. The following Swift code generate a .swiftmodule
func affectedApi() -> Int? { return 1 }
In Xcode 16 it generated the following .swiftmodule in the framework.
public func affectedIntApi() -> Swift.Int?
In Xcode 26 it adds an "if" statement.
#if compiler(>=5.3) && $NonescapableTypes
public func affectedIntApi() -> Swift.Int?
#endif
That if statement prevents Xcode16 from seeing the API, and it causes compile failures. This happens regardless of which Swift version is used, and it only affects functions which use Optionals.
Is there a way to prevent the compiler from wrapping the API in that statement?
Hello all! My name is Luke, and I'm a 14 year old with a idea for SSC. This is my first SSC submission ever. I would like some feedback concerning a question.
My app is an AI powered academic planner that helps you and your life. It uses a mini on-device LLM to help organize assignments.
This is a real business I am building, and I put inside of my app simulated features such as the app saying "scanning your Google Classroom..", would this go against any terms and make the app less likely to win?
I also have my app fully polished, and feels like an actual app and finished product, with demo assignments pre-loaded, and most stuff is placeholders. Should the app be more like a guided simulator? Such as "click here to see how this will be simulated in a final release" or again should it be polished?
I just want some feedback, since I only have 3 minutes, and the app needs to be offline, I just want to improvise. You can check out the basis of my app at my website. https://whiteb0x.me
Hopefully I can get some feedback from the community, and/or ex winners! Thanks all! - Luke
When attempting to access the (Certificates Identifiers & Profiles) page, I receive the message "Unable to find a team with the given Team ID to which you belong". Even while set as a developer or as an admin I still receive the same message above.
Topic:
Code Signing
SubTopic:
Certificates, Identifiers & Profiles
Tags:
App Store Connect
Xcode
Signing Certificates
Developer Program
Prior to iOS 26.0 we were able to download specific simulator runtimes from the command line by using a command like xcodebuild -downloadPlatform iOS -buildVersion 18.0
This is described in the documentation here.
This no longer works for 26.x. If I run the following command:
"xcodebuild -downloadPlatform iOS -buildVersion 26.0" it fails with the following error:
"Finding content... iOS 26.0 is not available for download."
If I omit the -buildVersion flag it will download the latest version, currently 26.2, but if I try and specify 26.2 as the buildVersion I still get "iOS 26.2 is not available for download".
This behavior has been confirmed on Xcode 26.2.
Perhaps related, it appears these runtimes are also no longer being made available for download on https://developer.apple.com/download/all
I am constantly reaching my daily ChatGPT limit and even though it's recommending that I log in, I already am.
What can I do to fix this?
The documentation of the NSPopover property hasFullSizeContent says that when it's true, you should
Use the safeAreaLayoutGuide of the contentViewController view to ensure that your content is fully visible and doesn’t become clipped when displayed.
I can do that by adding auto-layout constraints programmatically, but is there a way to do it in the xib? When I googled it, the AI summary begins
To use safe areas in a Mac XIB (Interface Builder), enable the "Use Safe Area Layout Guides" checkbox in the File Inspector for your view
but I have not found any non-AI indications that such a checkbox exists for macOS.
(I'm using Xcode 26.2.)
I'm starting a new project in Xcode, but the Team ID in the "Signing and Capabilities" section for iOS is different from the one on the website. Is this a problem? Why does Xcode automatically send a different ID when signing?
I'm trying to manage multiple Command Line Tools versions side-by-side (e.g., 16.2 and 26.2).
I renamed the CLT directory to /Library/Developer/CommandLineTools-26.2.0 and set:
xcode-select -s /Library/Developer/CommandLineTools-26.2.0
or DEVELOPER_DIR=/Library/Developer/CommandLineTools-26.2.0
Both result in:
c++: error: unable to find Xcode installation from active developer path "/Library/Developer/CommandLineTools-26.2.0"
It appears CLT only works at the fixed path /Library/Developer/CommandLineTools, unlike Xcode which can be at any location.
Is this by design? Is there a supported way to use multiple CLT versions in parallel, similar to how multiple Xcode versions can coexist?
Trying to develop a little Watch app in Swift, and it's been kind of a miserable experience. I constantly get transport errors trying to connect to my watch. I've tried the trick of putting the Mac and the watch on my iPhone hotspot instead of just on the same WiFi network, but I am not sure that actually helps. I can run maybe once or twice, and then the transport error happens and it's very hard to get XCode to recognize the watch again. Also, when it DOES connect, it seems that XCode almost always loses the debugging connection (I just continue, and it IS actually running on the Watch at that point, but no debugger).
Hi, I am using xCode26.x. But my Metal4 classes are not compiling. I downloaded the sample code from Apple's website - https://developer.apple.com/documentation/Metal/processing-a-texture-in-a-compute-function. For example, I am getting errors like "Cannot find protocol declaration for 'MTL4CommandQueue';
I have hit a deadline. Any recommendations are very welcome.
I have downloaded the Metal Tool chain. When I run the following commands on the terminal - xcodebuild -showComponent metalToolchain ; xcrun -f metal ; xcrun metal --version
I get the following response -
Asset Path: /System/Library/AssetsV2/com_apple_MobileAsset_MetalToolchain/86fbaf7b114a899754307896c0bfd52ffbf4fded.asset/AssetData
Build Version: 17A321
Status: installed
Toolchain Identifier: com.apple.dt.toolchain.Metal.32023
Toolchain Search Path: /Users/private/Library/Developer/DVTDownloads/MetalToolchain/mounts/86fbaf7b114a899754307896c0bfd52ffbf4fded
/Users/private/Library/Developer/DVTDownloads/MetalToolchain/mounts/86fbaf7b114a899754307896c0bfd52ffbf4fded/Metal.xctoolchain/usr/bin/metal
Apple metal version 32023.830 (metalfe-32023.830.2)
Target: air64-apple-darwin24.6.0
Thread model: posix
InstalledDir: /Users/private/Library/Developer/DVTDownloads/MetalToolchain/mounts/86fbaf7b114a899754307896c0bfd52ffbf4fded/Metal.xctoolchain/usr/metal/current/bin
Each time I try to launch Xcode 26, it immediately crashes in SourceEditorDataSource.ideChat_gracefullyApplyChangesToReflect.
I'm now no longer able to use Xcode.
A partial crash log attached.
So far I've tried deleting derived data, rebooting, deleting ~/Library/Caches/com.apple.dt.Xcode.
What should I do?
Thank you in advance for any help.
crash-report.txt
Ever since Xcode 15 and iOS 17 came out development has quite often been a nightmare of waiting and waiting -Xcode displaying endless circles saying preparing the device, connecting to the device, installing the device.
But recently to add to this, installation and launching is just taking really forever.
I'm currently running Xcode 15.1 and various versions of iOS 17 (I have several phones) and installing the app from Xcode takes about 7 - 10 minutes (compared to the same app installing in seconds with Xcode 14 for example).
Then once its finally installed, it then takes further minutes to launch, Xcode often actually displays a dialog saying its taking longer than expected to launch the app, adding the footnote "LLDB is likely reading from device memory to resolve symbols."
What could be reasons, and solutions, for the excruciatingly slow installation time, and launch time?
I really need to find a solution to this please - making a code change tweak, running, making another, running, making another, running, just isn't possible given the length of time it takes to install and launch each time.
The iPhone is connected via physical cable to the Mac, and the Mac and iPhone are both on the same Wifi network.
Xcode 15.1
M1 Macbook Pro
Sonomo 14.0
iOS 17.2
I'm trying to download an iOS Simulator runtime in Xcode 26.2 or 26.1 on macOS 26.1, but the download keeps failing with the following error:
Download failed.
Domain: DVTDownloadableErrorDomain
Code: 41
Failed fetching catalog for assetType (com.apple.MobileAsset.iOSSimulatorRuntime), serverParameters ({ RequestedBuild = 23C54;})
Domain: DVTDownloadsUtilitiesErrorDomain.
Code: -1.
Download failed due to a bad URL. (Catalog download for com.apple.MobileAsset.iOSSimulatorRuntime)
Domain: com.apple.MobileAssetError.Download
Code: 49
User Info: {checkConfiguration = 1;}
macOS & Xcode Info:
macOS Version: 26.1 (Build 25B78)
Xcode Version: 26.2 (24553) (Build 17C52)
What I've tried so far:
Formatted my Mac and reinstalled Xcode multiple times.
Completely deleted Xcode and its related files several times (/Applications/Xcode.app, caches, preferences).
Tried different internet connections from multiple locations.
Checked Apple servers and verified network.
Attempted downloading other simulator runtimes (fail).
but download fails immediately with DVTDownloadableErrorDomain Code 41 and bad URL error.
Question:
How can I fix the simulator download issue in Xcode 26.2 on macOS 26.1? Is there a known workaround for the bad URL / catalog download error?