I have three rogue iOS simulators, how to correctly delete them and reclaim the disk space?
These img files are costing me 18gb of storage.
Xcode
RSS for tagBuild, test, and submit your app using Xcode, Apple's integrated development environment.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Popular automated testing systems like FireBase [1] and WeTest [2] expect the uploaded test to include the Debug-iphoneos directory generated by Xcode. However, in all of our builds on Xcode 26.3, this folder is created but remains empty. There are some other folders with the same name in subdirectories, but these only contain intermediate build files.
Now we're looking for configuration or settings in Xcode to restore the original behavior, where the top-level Debug-iphoneos directory gets populated with a complete image of the test target, include the binary and resource files. Any suggestions would be much appreciated!
[1] https://firebase.google.com/docs/test-lab/ios/run-xctest
[2] https://www.wetest.net/documents/detail/automation/d8yaA7yz
On XCode 26.x, calling XCFail with continueAfterFailure set to false causes xcodebuild command to hang indefinitely if the XCUIApplication object is stored outside the test method.
Create a new template iOS App project with UI tests
Add XCFail(...) to a UI test test-case
Set the XCUIApplication in self.app (avoiding this fixes the hang)
Run tests with xcodebuild test
The terminal hangs forever
Reproduction example
import XCTest
final class TestAppUITests: XCTestCase {
var app: XCUIApplication? = nil
override func setUpWithError() throws {
continueAfterFailure = false
}
override func tearDownWithError() throws {
app?.terminate()
}
@MainActor
func testExample() throws {
let app = XCUIApplication()
self.app = app // <- HERE this causes the problem
app.launch()
XCTFail()
}
}
Reproduction environment
macOS Sequoia 15.7.3
Tested XCode 26.3 and XCode 26.2 have the hang
Tested XCode 16.4 does work as expected
XCode 16.4
The issue does not happen on XCode 16.4, and is likely introduced in XCode 26.
Related threads:
https://developer.apple.com/forums/thread/809989
https://developer.apple.com/forums/thread/793307
Work-around
Do not store XCUIApplication in the XCTestCase instance, maintain it scoped to the test methods.
Hi
One of the new Family Control API's requires the new "Family Controls App & Website Usage" capability but it appears to be missing in the latest Xcode beta (26.4 B2).
MacOS and iOS all running 26.4 Beta 3.
Does anyone know if we have to wait for Xcode 26.4 Beta 3 and it's associated SDK's for this one to become available?
I have Xcode 26.1.1 (installed on a Mac Mini with Sequoia 15.7.2), which was installed from the Universal .xip file available from the Apple Developer site. This file is 2.7Gb. When Xcode is run, there is a menu item at Settings -> Components, and the top section "Platform Support" includes an option to "Get" the iOS SDK, which is an additional 10.3Gb download.[1][2]
I would like to either use command-line tools to obtain this iOS SDK component, or find where the downloaded package or its contents are installed on this Mac. This Apple Documentation some examples of using command-line tools to download components for Xcode. However, there is no specific documentation on how to separately download the iOS SDK. It seems that if possible, it could be done with "xcodebuild -downloadComponent", however I have tried a number of likely component names (ios, ios_sdk, ios26.1, ios_sdk26.1, iphoneos, iphoneos_sdk, iphoneos_sdk26.1), and none are valid.
Does anyone know either where the SDK download can be found, or how to download it using command-line tools?
Background: I require this as I am managing a fleet of Mac Minis located in a data centre (used for iOS/Android builds), and Internet access is restricted - any action requiring Internet access needs the Mac to be removed from the machine room racks and taken to a build room, then connected to a mobile hotspot or similar. This access is slow, and the above 10.3Gb download can take over an hour. If I can download the SDK separately, I can distribute it to all of the Macs over the internal network overnight, in advance of visiting the DC for upgrade tasks.
[1] Various web sites say that the iOS SDK is "bundled with" Xcode. However, if that's the case a) how is a 10.3Gb download somehow included in a 2.7Gb file? And b) why do I still need to "Get" this component after installing Xcode from the 2.7Gb file?
[2] Note that I am not looking for the iOS Simulator, I have already downloaded the iOS 26.1 version of this. I am specifically looking for the iOS SDK as listed under "Platform Support" in the Xcode menu described above.
I’m constantly gettng 47 errors in my code and I’ve tried everything I can think of and can’t find the root problem, please can someone help
Topic:
Developer Tools & Services
SubTopic:
Xcode
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
Device Details:
MBP M2 Pro AND MBP M3 Pro
macOS 26.3 (25D125)
Xcode Version 26.3, 26.2, 26.1 (I reinstalled all 3 of these after the macOS update)
BUG:
Xcode hangs indefinitely when performing Source Control operations (Pull or Push) on a Git repository that uses SSH authentication. The same repository works correctly when performing the equivalent Git operations from the Terminal using the Git CLI.
The issue appears to be specific to Xcode’s internal Source Control integration. When the operation is triggered from Xcode, the UI shows a spinning progress indicator and never completes. Terminal Git commands (git fetch, git pull, git push) complete normally using the same SSH key and repository.
A hang sample taken during the issue shows the Xcode main thread blocked in Source Control authentication and fingerprint handling code paths, including:
IDESourceControlUIHandler
IDESourceControlFingerprintManager
handleAuthenticationFailure
showFingerprintAlertOnWindow
This suggests Xcode may be waiting on a Source Control authentication or host fingerprint UI flow that never resolves.
SSH connectivity itself is functioning correctly:
ssh -T git@bitbucket.org and ssh -T git@github.com both authenticate successfully.
git ls-remote, git fetch, git pull, and git push all work correctly from Terminal.
No Source Control accounts are configured in Xcode Preferences. Authentication relies entirely on SSH keys.
Steps to Reproduce
Configure an SSH key for Git access (e.g., Bitbucket or GitHub) and confirm it works via Terminal.
Clone or open an existing Git repository that uses SSH (git@host:repo.git).
Open the project/workspace in Xcode.
In Xcode, attempt a Source Control operation such as:
Source Control → Pull
Source Control → Push
Observe that Xcode displays a spinning progress indicator and does not complete the operation.
Logs available on this Feedback Assist ID: FB22146913
I've been investigating a persistent 401 Invalid Bearer Token error with Claude Agent in Xcode 26.3 on an Intel Core i9 Mac and wanted to share my findings here in case others are affected.
ENVIRONMENT
Hardware: Intel Core i9 (x86_64)
Xcode: 26.3 (17C529)
macOS: 26.3 (25D125)
THE ISSUE
Claude Agent fails with "Failed to authenticate. API Error: 401 - Invalid bearer token" on every prompt, despite the account showing as Signed In under Settings → Intelligence. The error persists after signing out and back in, and the token is confirmed valid and unexpired in Keychain.
WHAT WORKS
Claude Code in Terminal works perfectly on the same machine with the same credentials
The basic Claude Sonnet 4.5 coding assistant in Xcode works fine
Only Claude Agent is affected
ROOT CAUSE HYPOTHESIS
Xcode appears to be installing an ARM64 Claude binary on Intel Macs silently, with no warning or fallback. This binary likely fails to execute on x86_64 hardware and that failure is being misreported upstream as a 401 authentication error — which is why the error has nothing to do with the actual credentials.
APPLE'S RESPONSE
Feedback report FB22141224 was closed as 'Works as currently designed' with the explanation that Claude Agent requires the Neural Engine found on Apple Silicon. However, Claude Agent calls Anthropic's remote API over the network and performs no on-device AI processing — the Neural Engine is not involved. The fact that Claude Code works fine on this same Intel Mac with the same credentials demonstrates this clearly.
WORKAROUND
Using an Anthropic API key instead of OAuth resolves the issue but requires additional paid billing outside of an existing Claude.ai subscription.
Has anyone else experienced this on either Intel or Apple Silicon? I'd be particularly interested to hear if Apple Silicon users are also affected, as the Developer Forums suggest this may not be limited to Intel Macs (thread/816369).
Any input from Apple DTS engineers would be greatly appreciated.
How can i get a simple figma layout with minimal art into xcode
Topic:
Developer Tools & Services
SubTopic:
Xcode
Recently I noticed that although my drive showed ~800Gb of usage, the folders within totally to around ~600Gb (and yes I was including hidden 'dot' files/folders.
After some inspection I found that there are a whole set of Disk Media Images, that appear to be related to XCode simulators. Here's an extract from the command line diskutil list command:
/dev/disk5 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +17.6 GB disk5
Physical Store disk4s1
1: APFS Volume iOS 26.2 Simulator 17.1 GB disk5s1
/dev/disk6 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme +14.2 GB disk6
1: Apple_APFS Container disk7 14.2 GB disk6s1
/dev/disk7 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +14.2 GB disk7
Physical Store disk6s1
1: APFS Volume XROS 26.2 Simulator 13.8 GB disk7s1
/dev/disk8 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme +17.2 GB disk8
1: Apple_APFS Container disk9 17.2 GB disk8s1
/dev/disk9 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +17.2 GB disk9
Physical Store disk8s1
1: APFS Volume iOS 26.0 Simulator 16.7 GB disk9s1
/dev/disk10 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme +8.5 GB disk10
1: Apple_APFS Container disk11 8.5 GB disk10s1
/dev/disk11 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +8.5 GB disk11
Physical Store disk10s1
1: APFS Volume XROS 2.5 Simulator B... 8.2 GB disk11s1
/dev/disk12 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme +18.0 GB disk12
1: Apple_APFS Container disk13 18.0 GB disk12s1
/dev/disk13 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +18.0 GB disk13
Physical Store disk12s1
1: APFS Volume XROS 2.5 Simulator 17.5 GB disk13s1
/dev/disk14 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme +17.6 GB disk14
1: Apple_APFS Container disk15 17.6 GB disk14s1
/dev/disk15 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +17.6 GB disk15
Physical Store disk14s1
1: APFS Volume iOS 26.1 Simulator 17.1 GB disk15s1
/dev/disk16 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme +14.1 GB disk16
1: Apple_APFS Container disk17 14.1 GB disk16s1
/dev/disk17 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +14.1 GB disk17
Physical Store disk16s1
1: APFS Volume XROS 26.1 Simulator 13.7 GB disk17s1
/dev/disk18 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme +17.6 GB disk18
1: Apple_APFS Container disk19 17.6 GB disk18s1
/dev/disk19 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +17.6 GB disk19
Physical Store disk18s1
1: APFS Volume iOS 26.1 Simulator 17.1 GB disk19s1
/dev/disk20 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme +9.1 GB disk20
1: Apple_APFS Container disk21 9.1 GB disk20s1
/dev/disk21 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +9.1 GB disk21
Physical Store disk20s1
1: APFS Volume iOS 18.5 Simulator B... 8.8 GB disk21s1
/dev/disk22 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme +20.7 GB disk22
1: Apple_APFS Container disk23 20.7 GB disk22s1
/dev/disk23 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +20.7 GB disk23
Physical Store disk22s1
1: APFS Volume iOS 18.5 Simulator 20.2 GB disk23s1
I am unable to unmount them, either from the command line or Disk Utility. How do I go about this?
I was developing on Xcode and downloading and testing just fine. Today when I connect (via cable), clean, build and run the system
When I look in the iPhone ->settings -> General ->VPN & Device Management it does not list my developers tag. How do I get the two talking again. I have restarted the MAC (Xcode) and the iPhone multiple times.
Topic:
Developer Tools & Services
SubTopic:
Xcode
This is the full logging:
libsystem_kernel.dylib`__pthread_kill:
0x2502f71c8 <+0>: mov x16, #0x148 ; =328
0x2502f71cc <+4>: svc #0x80
-> 0x2502f71d0 <+8>: b.lo 0x2502f71f0 ; <+40>
0x2502f71d4 <+12>: pacibsp
0x2502f71d8 <+16>: stp x29, x30, [sp, #-0x10]!
0x2502f71dc <+20>: mov x29, sp
0x2502f71e0 <+24>: bl 0x2502f2900 ; cerror_nocancel
0x2502f71e4 <+28>: mov sp, x29
0x2502f71e8 <+32>: ldp x29, x30, [sp], #0x10
0x2502f71ec <+36>: retab
0x2502f71f0 <+40>: ret
Topic:
Developer Tools & Services
SubTopic:
Xcode
... and I managed to fix most issues coming out, but for a specific issue in an class adopting a protocol; basically it is a support class to be used by the view controller and so I wanted to keep it in background, so I created a new actor and I wanted to use it for this protocol and adopting classes. Yet I came out with a host of errors I have no idea about how to cope with:
:
Topic:
Developer Tools & Services
SubTopic:
Xcode
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
Setup:
Xcode 26.3.
MacOS Tahoe 26.3.1
Signed in for Coding Intelligence with Claude Pro plan.
For the first 3 prompts Claude responded normally.
Afterwards it always responds with "Your request couldn't be completed."
This is a grave issue I am facing while testing my apps on my personal device.
This is the error I seem to be getting: "The application could not be launched because the Developer App Certificate is not trusted."
And on the phone side, this is the message: Unable to Verify App. An internet connection is required to verify the trust of the developer "Apple Development...
Before I receive any recommendations, such as deleting Xcode or restarting my device, I would like to clarify that I have already taken all necessary precautions. The application I was testing appeared to function correctly in the morning a few hours prior to the update. However, after upgrading to the latest beta builds, iOS 26.4 beta and the latest macOS beta, this issue has become a recurring problem. I would greatly appreciate your assistance in resolving this matter, as it is of utmost importance to me.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
Xcode
Simulator
Signing Certificates
Testing
I've seen a couple posts on reddit today but wanted to call out here because I think it may be a more widespread issue - I keep getting an error trying to open my iOS app saying "Unable to verify app - An internet connection is required to verify trust of the developer...". I have never gotten this issue before and did not change anything in my build settings from my last successful build of the app to now. The directions it gives me are to go to Settings > General > VPN and Device Management and trust my developer certificate from there, but that doesn't work either. The first time I tried this, the developer certificate wasn't there at all, then I looked at Reddit and saw people recommending to download the developer certificate to solve the issue, but doing this did not fix the error either. Just looking to see if anyone else has encountered this or what the fix might be.
I changed something with Bundle Identifier... since then I cannot trust the certificate anymore on iPhone. It just won't show up. I reinstalled new profile, new bundle id, completely reinstalled iPhone... created new certificates, downloaded...
nothing... I thinks it needs internet connection, but connection works just fine
Unable to Verify App
An internet connection is required to verify trust of the developer "Apple Development: My Name
(22YBQVQJZK). This app will not be available until verified.
this makes me crazy.. I lost like 5 hours on this.. still it does not work... Apple Intelligence tried like everything .. didn't help
I work on some proprietary codebases and can only use private AI services with them (currently MiniMax M2.1 and GLM 4.7). It all works great with both Claude Code and OpenCode agents, and I'd like to leverage the new agentic capabilities that are now in Xcode 26.3.
I'm not seeing any option to connect to OpenCode, and both the Anthropic and OpenAI providers require an enterprise account (which I don't have access to).
Are there any options that I'm missing here?
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
Developer Tools
Apple Intelligence
Coding intelligence