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.
Search results for
xcode github
94,732 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
What Scott said plus: DocumentationCache is pretty much what it says on the tin. You can delete it, but Xcode will have to rebuild it (although that rebuild is likely to be smaller). If you do delete it, I recommend that you delete DocumentationIndex at the same time. For CoreSimulator, it’s probably best to not monkey with that yourself but instead manage it via either Window > Devices & Simulators in Xcode or the simctl command-line tool. And in all cases, make sure that Xcode is quit before you start deleting stuff behind its back. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
Hello. I am attempting to wrap the C library libnfc as a Swift library. This is not for use on macOS - it's mainly for use on Linux (Raspberry Pi). I have a USB reader and my code appears to work so far, however the code/test/debug cycle is suboptimal if I'm running the code on the Pi. As I use a Mac for day-to-day coding, I'd prefer to use Xcode and my Mac for development. MacOS appears to capture the NFC hardware for its own frameworks and attempting to open a connection to the USB device gives a Unable to claim USB interface (Permission denied) error. ioreg shows that the hardware is claimed by an Apple framework: UsbExclusiveOwner = pid 10946, com.apple.ifdbun Is there a way to temporarily over-ride that system and use the hardware myself? I've tried Googling but most of the replies are out of date and Claude's advice launchctl unload /System/Library/LaunchDaemons/com.apple.ifdreader.plist doesn't appear to work... I'm wary of disabling SIP - is there a simple way to have access to the hardware m
Same problem here with a fresh install of Tahoe & Xcode
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
I started using Xcode to package and submit my app yesterday, but it failed. I received a prompt Your app must be registered with App Store Connect before it can be uploaded. Xcode will create an app record with the following properties. halfway through the process. After filling it out and submitting, I received another prompt App Record Creation Error,App Record Creation failed as you do not have permission to perform requests of this type.。 I have already listed several apps on the app store. For the other apps, I also tried creating new versions, packaging, and submitting them, but I encountered the same error
The issue is indeed related to my account having administrative permissions under another company's account. My personal account has been assigned administrative permissions (with the authority to manage certificates) under another company's account. Yesterday, I tried to remove my account from that company's account. Today, when I tried to package and submit, Xcode prompted me to access my certificate (presumably the certificate for my personal account). After I agreed, everything proceeded smoothly. It seems that when my account has administrative permissions for multiple accounts, Xcode uses the wrong certificate.
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags:
Hello everyone, I have an app that is used in the education sector for high stakes assessment testing. I reviewed a lot of the WWDC2025 information in June, however, it seems we missed something critical in the What's new in UIKIt presentation. That would be the deprecation of UIRequiresFullScreen. We currently use this in our app and have been using it since iOS/iPad OS 9 when our app was written. The deprecation of this property has caused some major issues in our layout. Keep in mind we are a hybrid app so our mobile app is self-hosting a fullscreen version of WKWebView under the hood. This is common across assessment developers in the education sector. I removed the property and went through the migration guide (https://developer.apple.com/documentation/technotes/tn3192-migrating-your-app-from-the-deprecated-uirequiresfullscreen-key) and it doesn't appear to be straight forward on how to lock the orientation in landscape. I tried several different approaches: Requesting the screen orientation lock we had
Based on your description, you are encountering an issue with loading the library and deploying it into macOS versions 15? Correct. Can you confirm that when you deploy the app built in Xcode 26.2 to macOS 15, you still encounter this bug? That is the case. I sm compiling with Xcode 26.2 using macOS 26.2 (25C57) SDK (Built-in) targeting macOS 12 and later. The error occurs on macOS 15.7.3 but not on macOS 26. I suspect this is because macOS provides the Span API natively and thus does not need to access the backdeployment dylib, unlike macOS 15 where this API is not available natively. Talking to people working on Swift, they interpreted this to be an Xcode issue, stating: Xcode should (somehow) bundle libswiftCompatibilitySpan with it, but it doesn’t, leading to the failure on macOS 15.x.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
Environment Device: iPhone 15 Pro iOS: iOS 18.0 Framework: AVFoundation App type: Custom camera app using AVCaptureSession + AVCaptureVideoPreviewLayer I’m seeing an intermittent but frequent issue where the camera preview layer briefly flashes empty after certain interruptions, even though the capture session reports itself as running and no errors are emitted. This happens most often after: Locking and unlocking the device Switching cameras (back ↔ front) The issue is not 100% reproducible, but occurs often enough to be noticeable in normal usage. What happens The preview layer briefly flashes as empty (sometimes just a “micro-frame”) Duration: typically ~0.5–2 seconds before frames resume session.isRunning == true throughout No crash, no runtime error, no interruption end failure Focus/exposure restore correctly once frames resume Visually it looks like the preview layer loses frames temporarily, even though the session appears healthy. Repro Intermittent but frequent after: Lock → unlock device Switching
Thanks for the post. Based on your description, you are encountering an issue with loading the library and deploying it into macOS versions 15? I believe there was a bug on previous versions of Xcode, but that should have been fixed. Are you using Xcode 26.2 to build the app? The error message indicates that the library cannot be found at runtime, despite being included in your build setup. If you are getting this error on macOS Sonoma with the app build in Xcode 26.2, it means the bug is on that version of macOS. If you are not getting the error in macOS Tahoe, the bug has been fixed. The good news is that the bug has been fixed, but the bad news is that the bug is also in macOS 15? And it was not just Xcode as I initially thought. Can you confirm that when you deploy the app built in Xcode 26.2 to macOS 15, you still encounter this bug? Albert Pascual
Worldwide Developer Relations.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
Thank you for your post. I believe the primary focus of your post is on the simplicity of how easy is to set the incorrect account in the dropdown menu for the account you are currently using in Xcode. As a personal recommendation, I only suggest using a separate device (computer and test devices) dedicated to your Business Apple ID to avoid potential conflicts. Ensure that your personal account is never connected to this devices. This approach will prevent any accidental mixing of accounts, in my modest opinion. You can manage your Business Apple ID independently and use it exclusively for redeeming TestFlight invites related to your business projects. Additionally, if you are using beta versions of iOS, ensure that the profiles associated with your Business/Managed Apple ID are correctly installed and active on the device. To implement these steps, navigate to Xcode > File > Settings > Apple Accounts and remove your personal account. By maintaining separate devices for your person
Topic:
App Store Distribution & Marketing
SubTopic:
TestFlight
Tags:
I noticed that when the render command encoder adds no draw calls an apps memory usage seems to grow unboundedly. Using a super simple MTKView-based drawing with the following delegate (code at end). If I add the simplest of draw calls, e.g., a single vertex, the app's memory usage is normal, around 100-ish MBs. I am attaching a couple screenshot, one from Xcode and one from Instruments. What's going on here? Is this an illegal program? If yes, why does it not crash, such as if the encode or command buffer weren't ended. Or is there some race condition at play here due to the lack of draws? class Renderer: NSObject, MTKViewDelegate { var device: MTLDevice var commandQueue: MTL4CommandQueue var commandBuffer: MTL4CommandBuffer var allocator: MTL4CommandAllocator override init() { guard let d = MTLCreateSystemDefaultDevice(), let queue = d.makeMTL4CommandQueue(), let cmdBuffer = d.makeCommandBuffer(), let alloc = d.makeCommandAllocator() else { fatalError(unable to create metal 4 objects) } self.device
Topic:
Graphics & Games
SubTopic:
Metal
Updating to XCode 26.2 and macOS Tahoe 26.2 and im now greeted with Trace file had no swiftui data this occurs if I profile with XCode and chose a template I profile with XCode and chose a blank template and manually choose SwiftUI I manually run the Instruments, manually run the app, attach and open a document in my swiftUI app however, if i DO NOT load a document (macOS based swiftui app), im able to get swiftui traces my feeling here is theres something going on with complicated traces that cause an issue modelling the data stream, or capturing the trace? Im not familiar with the nuances here but this isnt working for anything that NEEDS profiling.
Topic:
Developer Tools & Services
SubTopic:
Instruments
Tags:
Hi all! For all of these weird errors, you'll need a matching Xcode version, Simulator version, and macOS version for everything to work. You also need all versions to be at least 26.0, otherwise the model assets simply aren't there. e.g. Xcode 26.2, iOS 26.2 simulator, macOS 26.2 After you update Xcode and simulator, those should work right away.... but when you update your physical device or VM expect some delay. Once you update the correct version of the model assets have to finish downloading, which could take a few hours depending on your network and device power.
Topic:
Machine Learning & AI
SubTopic:
Foundation Models
Tags:
Hi Apple Team, We have high crash counts in App Store Connect > App Analytics > Crashes (197), but zero matching crashes in Xcode Organizer or Firebase Crashlytics for the same app version/build. App details: Bundle ID: com.youtunein.youtunein Version: [1.88,1.89,1.90,1.91] Affected iOS versions: [1.88,1.89,1.90,1.91] Steps tried: Downloaded raw .crash files from App Store Connect and symbolicated in Xcode Organizer – no crashes appear. Firebase console clean, no spikes. dSYM files uploaded via Xcode Archive/Transporter. Enabled crash reporting in app (no custom crash handling blocking). Crash reports attached (top 3 symbolicated). No ANRs/symbolication issues visible. Production + TestFlight both affected? Need help understanding discrepancy and resolving. Thanks!