I’m blocked debugging a watchOS app on a physical Apple Watch. The iPhone connects to Xcode normally (wired), but the Watch either fails to connect with a tunnel timeout or disappears entirely from Xcode after I unpaired it inside Devices & Simulators.
Environment
Mac: macOS 26.x (Apple Silicon Mac)
Xcode: 26.2
iPhone: iOS 26.1
Apple Watch Ultra: watchOS 26.2 (build 23S303)
Connection: iPhone connected to Mac via USB (trusted). Watch paired to iPhone and working normally in the Watch app.
Issue A (when Watch is visible in Xcode)
In Xcode → Window → Devices and Simulators, the Watch shows up but is not usable and fails to connect.
Error:
“Previous preparation error: A connection to this device could not be established.”
“Timed out while attempting to establish tunnel using negotiated network parameters.”
In some attempts the Watch shows “Capacity: Unknown” / limited details, and then fails during preparation.
Issue B (after unpairing Watch in Xcode only)
I unpaired/removed the Watch in Xcode (Devices & Simulators). I did not unpair the Watch from the iPhone.
Now:
iPhone appears in Xcode and works normally for builds.
Watch is still paired to the iPhone and works normally.
Watch no longer appears anywhere in Xcode Devices & Simulators (no paired watch section, no watch run destination).
What I’ve tried
Reboots of Mac, iPhone, Watch (multiple times)
Watch unlocked, awake; iPhone unlocked and close to Watch
Verified Watch is paired and connected in iPhone Watch app
Developer Mode enabled on iPhone and Watch
Wi-Fi and Bluetooth ON (Mac/iPhone/Watch), tried toggling both
Tried on home Wi-Fi and also with iPhone hotspot (same result)
Resetting trust prompts / reconnecting iPhone via USB, re-trusting Mac
Apple Watch: “Clear Trusted Computers”
Xcode: removing/re-adding devices; clearing derived data; restarting Xcode
Watch Developer networking test: Responsiveness = Medium (430 RPM)
Questions
1. Is this a known issue/regression with Xcode 26.2 + watchOS 26.2 tunneling (CoreDevice / devicectl)?
2. Is there an Apple-supported way to force Xcode to re-discover a paired Watch after it was removed from Xcode Devices & Simulators (without unpairing the Watch from the iPhone)?
3. Any recommended logs or diagnostic steps I should collect (Console logs, sysdiagnose, specific Xcode/CoreDevice logs) to include in a Feedback report?
If helpful, I can provide the full error text from Xcode’s Devices window and any logs you recommend.
Thank you in advance,
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
Created
I’m currently facing a disk space limitation on my Mac.
I’ve already freed up some storage by following the suggestions shared in a previous post, which helped partially, but the issue is not fully resolved and space is still a bottleneck for my workflow.
To move forward, I’d like to ask a very concrete question:
Is it safe and supported to move Xcode to an external hard drive (SSD), use it from there, and simply connect the drive whenever I need to work with Xcode?
Specifically:
Are there known issues with performance, stability, or updates?
Are there components that must remain on the internal disk to avoid unexpected behavior?
Is this a reasonable long-term setup, or just a temporary workaround?
I want to make sure I’m not setting myself up for hidden problems down the road.
Thanks in advance for any clarification or best practices you can share.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
Files and Storage
Developer Tools
External Accessory
Xcode
for detailed
Download failed.
Domain: DVTDownloadableErrorDomain
Code: 41
User Info: {
DVTErrorCreationDateKey = "2026-01-17 08:51:49 +0000";
}
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 not being able to connect to the host. (Catalog download for com.apple.MobileAsset.iOSSimulatorRuntime)
Domain: com.apple.MobileAssetError.Download
Code: 60
User Info: {
checkNetwork = 1;
}
System Information
macOS Version 15.7.3 (Build 24G419)
Xcode 26.2 (24553) (Build 17C52)
Timestamp: 2026-01-17T16:51:49+08:00
I have an orphaned asset folder taking up 9.13GB located at:
/System/Library/AssetsV2/com_apple_MobileAsset_iOSSimulatorRuntime/c0d3fd05106683ba0b3680d4d1afec65f098d700.asset
It contains SimulatorRuntimeAsset version 18.5 (Build 22F77).
Active Version: My current Xcode setup is using version 26.2 (Build 23C54).
I checked the plist files in the directory and found what seems to be the cause of the issue:
The "Never Collected" Flag: The Info.plist inside the orphaned asset folder explicitly sets the garbage collection behavior to "NeverCollected":
<key>__AssetDefaultGarbageCollectionBehavior</key>
<string>NeverCollected</string>
The Catalog Mismatch: The master catalog file (com_apple_MobileAsset_iOSSimulatorRuntime.xml) in the parent directory only lists the new version (26.2). Because the old version (18.5) is missing from this XML, Xcode and mobileassetd seem to have lost track of it entirely.
What I Have Tried (All Failed)
Xcode Components: The version 18.5 does not appear in Settings -> Components, so I cannot delete it via the GUI.
Simctl: xcrun simctl list runtimes does not list this version. Running xcrun simctl runtime delete 22F77 fails with: "No runtime disk images or bundles found matching '22F77'."
Manual Deletion: sudo rm -rf [path] fails with "Operation not permitted", presumably because /System/Library/AssetsV2 is SIP-protected.
Third-party Tools: Apps like DevCleaner do not detect this runtime (likely because they only scan ~/Library or /Library, not /System/Library).
Has anyone found a way to force the system (perhaps via mobileassetd or a specific xcrun flag) to re-evaluate this folder and respect a deletion request?
I am trying to avoid booting into Recovery Mode just to delete a cache file.
Any insights on how AssetsV2 handles these "orphaned" files would be appreciated.
Hi!
I have a bigger Xcode project that has multiple targets:
the main app (MainApp)
helper command line tool (HelperTool)
The project also lists multiple package dependencies via SwiftPM and these dependencies have dependencies between themselves.
One of such packages produces a dynamic library MyFramework which is a dependency for both the main app and the HelperTool which has it listed under Build Phases > Dependencies as well as under Link with Frameworks.
This builds just fine, but the issue somes when I want to add another target called AdditionalHelperTool which it has pretty much the same dependencies as HelperTool.
When I add this second target, I start running into issues like the following:
Multiple commands produce '[...]/Build/Products/Debug/Frameworks/MyFramework.framework/Versions/A'
Target 'HelperTool' (project 'MyApp') has copy command from '[...]/Build/Products/Debug/PackageFrameworks/MyFramework.framework' to '[...]/Build/Products/Debug/Frameworks/MyFramework.framework'
Target 'AdditionalHelperTool' (project 'MyApp') has copy command from '[...]/Build/Products/Debug/PackageFrameworks/MyFramework.framework' to '[...]/Build/Products/Debug/Frameworks/MyFramework.framework'`
It seems that Xcode runs the build of both targets separately and it sees a conflict given that both targets have same dependencies that it's trying to built separately.
Has anyone encountered something similar?
Can anyone suggest a solution for this?
Hello, I just updated my Xcode to 26.2 and downloaded the relevant simulator for it to test how my app looks in general. I use the newest iPhone and mini version, in this case, iPhone 13 mini, and the SE (3rd generation).
Everything is working as expected, but for the iPhone mini simulator, this weird red line is showing. Is anyone having this issue?
Hi all,
I’m suddenly experiencing an old issue again and can no longer build my project to run on the local iOS simulator.
I’m using a MacBook with an M1 (ARM64) processor and Xcode for development. Until recently, everything was working as expected. However, when I opened Xcode today, I noticed new build options such as ARM64 and ARM64 + x86_64, and I’m also seeing simulator entries running under Rosetta. I don’t recall seeing these options the last time I used Xcode.
At the moment:
Building for “Any iOS Device (arm64)” succeeds.
Building for Rosetta-based simulators also succeeds (which I understand are intended for Intel-based processes).
However, when I select an ARM64 simulator, the build fails with the error:
“Framework Podd_App not found.”
It appears that simulator builds targeting ARM64 are being restricted or misconfigured, possibly due to a corrupted setting or a recent update.
Has anyone experienced this before, or can suggest which settings I should check to resolve this issue?
Thanks in advance.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Hi...
Is there not an available Developer Disk Image for this situation? I am unable to do my professional job because I have not been able to overcome this issue on my machine. I have various things to try to resolve this issue so that I can install, run, and test apps onto my iPhone (iPhone 13).
The version of MacOSX is Sequoia 15.7.3.
I've tried everything from hard resetting the pairing stack, to resetting the trust on my iPhone. I've even sought help from AI. AI says, in a nutshell I'm screwed.
Apparently, I am unable to downgrade from iOS 26.2 to, say, iOS 18 or below.
I'll be honest: this is frustrating, and this situation seems to happen like clockwork with every update in either direction.
I hope someone somewhere has ideas. Thanks.
Update:
I'm not even reaching the step where the shared Cache symbols are being copied from my iPhone.
The developer disk image could not be mounted on this device.
Domain: com.apple.dt.CoreDeviceError
Code: 12040
Failure Reason: Failed to find a DDI that can be used to enable DDI services on the device. Usually this means the best DDI we could find for a platform did not have compatible CoreDevice content. Run 'devicectl list preferredDDI' from the command line to get more details on why no valid DDI can be found.
User Info: {
DVTErrorCreationDateKey = "2026-01-14 18:56:43 +0000";
DeviceIdentifier = "C471EDF8-4385-5669-BA17-976B325B2EC4";
"com.apple.dt.DVTCoreDevice.operationName" = enablePersonalizedDDI;
}
--
Failed to find a DDI that can be used to enable DDI services on the device. Usually this means the best DDI we could find for a platform did not have compatible CoreDevice content. Run 'devicectl list preferredDDI' from the command line to get more details on why no valid DDI can be found.
Domain: com.apple.dt.CoreDeviceError
Code: 12001
--
System Information
macOS Version 15.7.3 (Build 24G419)
Xcode 26.2 (24553) (Build 17C52)
Timestamp: 2026-01-14T10:56:43-08:00
COMMAND LINE Developer % devicectl list preferredDDI
Host CoreDevice version: 506.6
WARNING: No usable DDI found for the iOS platform (The DDI's CoreDevice content is too old.). Best (unusable) DDI found is:
• hostDDI: file:///Library/Developer/DeveloperDiskImages/iOS_DDI/
▿ ddiMetadata:
• buildUpdate: 17C5038g
• contentIsCompatible: false
• coreDeviceVersionChecksIncludeDevelopmentRevision: true
• developmentRevision: 0
• enforcingCoreDeviceVersionChecks: true
• platform: iOS
▿ projectMetadata:
• Citrine-1500.1
• CoreDevice-506.5
• DTDeveloperDiskImageSupport-14.0.0
• DTOCMock-23002
• GPUToolsDevice_DDI-312.4
• JetsamProperties-2648.0.21
• LiveExecutionResultsLogger-20100
• Mercury-67
• Playgrounds-11
• XCTest-24507
• incompatibleContentReason: The DDI's CoreDevice content is too old.
• isUsable: false
• variant: external
WARNING: No DDI was found for the macOS platform.
No usable DDI found for the tvOS platform (The DDI's CoreDevice content is too old.). Best (unusable) DDI found is:
• hostDDI: file:///Library/Developer/DeveloperDiskImages/tvOS_DDI/
▿ ddiMetadata:
• buildUpdate: 17C5038g
• contentIsCompatible: false
• coreDeviceVersionChecksIncludeDevelopmentRevision: true
• developmentRevision: 0
• enforcingCoreDeviceVersionChecks: true
• platform: tvOS
▿ projectMetadata:
• Citrine-1500.1
• CoreDevice-506.5
• DTDeveloperDiskImageSupport-14.0.0
• DTOCMock-23002
• GPUToolsDevice_DDI-312.4
• JetsamProperties-2648.0.21
• LiveExecutionResultsLogger-20100
• Mercury-67
• Playgrounds-11
• XCTest-24507
• incompatibleContentReason: The DDI's CoreDevice content is too old.
• isUsable: false
• variant: external
WARNING: No usable DDI found for the watchOS platform (The DDI's CoreDevice content is too old.). Best (unusable) DDI found is:
• hostDDI: file:///Library/Developer/DeveloperDiskImages/watchOS_DDI/
▿ ddiMetadata:
• buildUpdate: 17C5038g
• contentIsCompatible: false
• coreDeviceVersionChecksIncludeDevelopmentRevision: true
• developmentRevision: 0
• enforcingCoreDeviceVersionChecks: true
• platform: watchOS
▿ projectMetadata:
• Citrine-1500.1
• CoreDevice-506.5
• DTDeveloperDiskImageSupport-14.0.0
• DTOCMock-23002
• GPUToolsDevice_DDI-312.4
• JetsamProperties-2648.0.21
• LiveExecutionResultsLogger-20100
• Mercury-67
• Playgrounds-11
• XCTest-24507
• incompatibleContentReason: The DDI's CoreDevice content is too old.
• isUsable: false
• variant: external
WARNING: No usable DDI found for the visionOS platform (The DDI's CoreDevice content is too old.). Best (unusable) DDI found is:
• hostDDI: file:///Library/Developer/DeveloperDiskImages/xrOS_DDI/
▿ ddiMetadata:
• buildUpdate: 17C5038g
• contentIsCompatible: false
• coreDeviceVersionChecksIncludeDevelopmentRevision: true
• developmentRevision: 0
• enforcingCoreDeviceVersionChecks: true
• platform: xrOS
▿ projectMetadata:
• Citrine-1500.1
• CoreDevice-506.5
• DTDeveloperDiskImageSupport-14.0.0
• DTOCMock-23002
• GPUToolsDevice_DDI-312.4
• JetsamProperties-2648.0.21
• LiveExecutionResultsLogger-20100
• Mercury-67
• Playgrounds-11
• XCTest-24507
• incompatibleContentReason: The DDI's CoreDevice content is too old.
• isUsable: false
• variant: external
I've downloaded Xcode 26.2 directly from Developer.Apple.com and I'm stuck here. I have deleted and redownloaded, restarted computer, tried the App Store version, tried 26.1, and maybe a couple other things. Regardless always end up stock here. I hit "Install" and it just brings me right back to this same window. Thank you.
This is my first time downloaded any version of Xcode on this machine MacBook Pro, Apple M4 Max, Tahoe 26.2.
Topic:
Developer Tools & Services
SubTopic:
Xcode
When building our project for Mac Catalyst with Xcode 26.2, we get this warning almost a hundred times, once for every object file:
directory not found for option '-L/var/run/com.apple.security.cryptexd/mnt/com.apple.MobileAsset.MetalToolchain-v17.3.48.0.UZtKea/Metal.xctoolchain/usr/lib/swift/maccatalyst'
Somehow, every Link <FileName>.o build step got the following parameter, regardless if the target contained Metal files or not:
-L/var/run/com.apple.security.cryptexd/mnt/com.apple.MobileAsset.MetalToolchain-v17.3.48.0.UZtKea/Metal.xctoolchain/usr/lib/swift/maccatalyst
The toolchain is mounted at this point, but the directory usr/lib/swift/maccatalyst doesn't exist.
When building the project for iOS, the option doesn't exist and the warning is not shown.
We already check the build settings, but we couldn't find a reason why the linker is trying to link against the toolchain here.
Even for targets that do contain Metal files, we get the following linker warning:
search path '/var/run/com.apple.security.cryptexd/mnt/com.apple.MobileAsset.MetalToolchain-v17.3.48.0.UZtKea/Metal.xctoolchain/usr/lib/swift/maccatalyst' not found
Is this a known issue? Is there a way to get rid of these warnings?
I successfully archive my app but when I try and distribute it via XCode I get this error:
But I do have that permission.
I tried signout and sign in on XCode but still same error. Help!
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
Signing Certificates
App Store Connect
Developer Program
I am having difficulty coding my video to play in the app I am developing.
My video file is located in the navigator pane, along with the other swift files in the project, with an A to the right hand side of the file, which I thought means it is available in the bundle. Unfortunately, an error saying the video cannot be found in the bundle shows at the bottom of my Xcode screen, after previewing the project. The file names match. Any further trouble shooting I'm doing references the old Xcode app, so I am stuck.
I am seeing a regression with XCUIDevice.shared.appearance = .dark in UI tests that only affects xcodebuild, not Xcode’s UI test runner.
Setup
• UI tests written using XCTest
• Dark mode forced in setUp() using:
XCUIDevice.shared.appearance = .dark
• Tests target an iOS simulator
• Same test target, same scheme
Expected behavior
The app launches in Dark Mode for UI tests, as it did previously.
Actual behavior
• When running UI tests from Xcode (Product > Test), Dark Mode is applied correctly.
• When running the same UI tests via xcodebuild test, Dark Mode is ignored and the app launches in Light Mode.
• No test failures, no warnings, no logs indicating the appearance override was skipped.
Regression details
• This used to work on older iOS versions when running via xcodebuild.
• The regression appears after updating iOS simulators (exact version boundary still unclear).
• No relevant changes were made to the test code, scheme, or CI configuration.
• xcodebuild otherwise launches and runs UI tests normally.
Notes
• The issue is specific to XCUIDevice.shared.appearance.
• Other UI test functionality behaves as expected.
• This makes CI results inconsistent with local Xcode runs and breaks visual assumptions in snapshot and layout-based tests.
Question
Is this a known regression or an intentional behavior change in recent iOS / Xcode versions?
If intentional, what is the supported way to reliably force Dark Mode in UI tests when running via xcodebuild?
This currently makes xcodebuild-based CI UI testing unreliable compared to Xcode’s test runner.
This
extension View {
public func renderSomething() async throws {
let renderer = ImageRenderer(content: self)
// renderer.colorMode = .linear
renderer.render { size, context in
print(size)
// ...
}
// ...
}
}
let view: some View = ...
view.renderSomething() // → exception
will cause the program to exit with EXC_BREAKPOINT deep inside SwiftUI. This worked with previous versions of Xcode, SwiftUI, and macOS. Xcode Version 26.2 (17C52), macOS Sequoia 15.7.3, using toolchain bundled with Xcode.
I am using swift-subprocess, and need to disable the SubprocessSpan trait because Xcode 26.2 does not ship with a bundled version libswiftCompatibilitySpan.dylib, causing everything to crash built with Xcode that happens to use Span. However, I cannot disable that trait by doing any of the following things:
.package(
url: "https://github.com/swiftlang/swift-subprocess.git",
branch: "main",
traits: []
),
.package(
url: "https://github.com/swiftlang/swift-subprocess.git",
branch: "main",
traits: [.trait(name: "SubprocessFoundation")]
),
Note that SubprocessSpan is default trait in subprocess:
// Enable SubprocessFoundation by default
var defaultTraits: Set<String> = ["SubprocessFoundation"]
#if compiler(>=6.2)
// Enable SubprocessSpan when Span is available [except it is not]
defaultTraits.insert("SubprocessSpan")
#endif
The package still builds with the SubprocessSpan enabled. This is not an issue with the subprocess package. According to this, I should use swift build on the command line, yet this isn't -- as is upgrading to Tahoe -- an option because I need Xcode previews for SwiftUI.
Help, what do I do now (other than downloading a toolchain) from swift.org)?
Xcode tells me
Previewing in executable targets now requires a new build layout for unoptimized builds. Either set ENABLE_DEBUG_DYLIB to YES for this target, or break out your preview code into a separate framework with its own scheme.
How do enable that in Package.swift. swiftSettings don't work (.define and unsafeFlags with -D ...).
Creating a library product that the executable then depends on doesn't help either.
I have two targets, one is an executable target. The #Preview macro is in the non-executable target.
Downloaded Xcode 26.2 from App Store. Started new Project, which defaults to "hello world".
The canvas "simulator" within fails to finish indexing (paused), or
When the canvas is active, the first code change (i.e. just a return key at the end of a line) cause the Xcode program to come to a stop.
Have ended Xcode and rebooted a number of times. A number of remedies are posted on the net. All a little different than the other.
Is there a current remedy for Xcode 26.2 to this issue available?
iMac on Sequoia 15.7.3 , 800 gb of available storage
Xcode: 26.2 (24553)
Instruments: 26.2 (64573.16)
SDKs:
DriverKit:
25.2:
iOS:
26.2: (23C53)
iOS Simulator:
26.2: (23C53)
macOS:
26.2: (25C57)
tvOS:
26.2: (23K50)
tvOS Simulator:
26.2: (23K50)
visionOS:
26.2: (23N301)
visionOS Simulator:
26.2: (23N301)
watchOS:
26.2: (23S303)
watchOS Simulator:
26.2: (23S303)
Hello I am using 26.2 (25C56) on my m4 air. when I am working on a Flutter project suddenly my app crashed and after when I tried to build the application again this error occurs. How to fix it. ?
Launching lib/main.dart on iPhone 16e in debug mode...
Xcode build done. 2.4s
Failed to build iOS app
Uncategorized (Xcode): Unable to find a destination matching the provided destination specifier:
{ id:45967BD9-44E0-4D5D-8C43-C5437F48836A }Available destinations for the "Runner" scheme:
{ platform:macOS, arch:arm64, variant:Designed for [iPad,iPhone], id:00008132-001E5102020B801C, name:My Mac }
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
Could not build the application for the simulator.
Error launching application on iPhone 16e.
Hi, we've been developing an XR application for Apple Vision Pro which has worked fine so far. Now that the SDKs have updated to 26.2 (for Xcode and AVP versions) we've run into an error that prevents the app from launching.
I get the following error when running the application in the AVP Simulator (building for destination Apple Vision Pro (26.2), and my colleague gets the same error when building for the device itself and launching there.
BUG IN CLIENT: For mixed reality experiences please use cp_drawable_compute_projection API
Type: Error | Timestamp: 2026-01-13 09:21:57.242191+02:00 | Process: My XR App | Library: CompositorNonUI | TID: 0x75e2c
(copied with "all metadata")
How can we debug this further? The error in the console doesn't seem to give any stack trace or clear pointer to the code which relates to it. I've tried searching for CompositorNonUI, but that doesn't yield any results in our project (nor Google nor the Apple developer forums).
There is one post in the forum that has a similar error (https://developer.apple.com/forums/thread/788500?answerId=845039022#845039022) but searching in our project and it's dependencies, we don't seem to use ".tangent" anywhere either.
Any help in either debugging to find more details on where the issue happens or pointers to fixing it much appreciated, thanks!
I've developed a Multiplatform app under Xcode 26 (currently using 26.2 17C52). The current destinations of the single target are Mac, iPad and Mac(designed for iPad). The minimum deployments are MacOS 15.6 and iOS 18.6. All destinations build and perform correctly on physical devices (running OS 26 versions).
The MacOS version has been submitted successfully to the AppStore for TestFlight usage. However, the iPad version shows a submission validation failure:
Missing Info.plist value. A value for the key “WKApplication”, or “WKWatchKitApp” if your project has a WatchKit App Extension target, is required in “xxxxx.app/xxxxx.app” bundle. For details, see: https://developer.apple.com/documentation/watchkit/creating_independent_watchos_apps/setting_up_a_watchos_project (ID: 4911506c-39c3-4b69-a8bb-5e5dcd3dc2fb)
The app has no WatchKit version (although one's planned for a future release). The Target's Build Settings include a "watchOS Deployment Target" and Info.plist values related to WatchKit. The Build Settings also include similar settings for TVOS and VisionOS.
I'm unable to delete the aforementioned Build Settings (Can't select & use the delete key). The link in the message provides no help.
Is this a bug in Xcode, or am I missing something?
Regards, Michaela