App can't debug on iOS 26 device, but can on iOS 18

This is from Mac OS 26 or the prior version.

It seems to be trying to include XCTest, but its no where in the build phases or frameworks? Anyone seen this issue?

Failed to install the app on the device. Domain: com.apple.dt.CoreDeviceError Code: 3002 User Info: { DVTErrorCreationDateKey = "2025-06-11 15:28:16 +0000"; IDERunOperationFailingWorker = IDEInstallCoreDeviceWorker; NSURL = "file:///Users/ekaplan/Library/Developer/Xcode/DerivedData/dormway-mobile-feckueenojzruoaobakflnuqoglk/Build/Products/Debug-iphoneos/dormway-mobile.app"; }

Unable to Install “DormWay” Domain: IXUserPresentableErrorDomain Code: 1 Failure Reason: Please try again later. Recovery Suggestion: Failed to iterate on macho slices for input file: /private/var/containers/Bundle/Application/D920CF2A-E16B-403F-B2DB-8F1732CA3D5F/dormway-mobile.app/Frameworks/XCTest.framework/XCTest

Failed to iterate on macho slices for input file: /private/var/containers/Bundle/Application/D920CF2A-E16B-403F-B2DB-8F1732CA3D5F/dormway-mobile.app/Frameworks/XCTest.framework/XCTest Domain: MIInstallerErrorDomain Code: 73 User Info: { FunctionName = MIMachOFileIterateImageVersions; SourceFileLine = 129; }

parse_macho_iterate_slices failed for /private/var/containers/Bundle/Application/D920CF2A-E16B-403F-B2DB-8F1732CA3D5F/dormway-mobile.app/Frameworks/XCTest.framework/XCTest Domain: NSPOSIXErrorDomain Code: 62 Failure Reason: Too many levels of symbolic links User Info: { FunctionName = MIMachOFileIterateImageVersions; SourceFileLine = 129; }

It seems to be trying to include XCTest, but its no where in the build phases or frameworks? Anyone seen this issue?

I agree that's the likely issue here. In addition to looking in places like the Linked Libraries section of build settings, look in your Build Settings if it's been added to a build setting there. And finally, check the organization of your scheme, under the Build tab. Compare the actions in that tab to that of a brand new project, and which are enabled and not enabled for different target types and actions.

— Ed Ford,  DTS Engineer

This is a strange one as XCTest is nowhere to be found anywhere in the build settings or schema, and a fresh project installs fine, even with similar dependencies. Plus, from Xcode 26 it will build and install fine on an iOS 18 device and the simulator. So its something with this Xcode project and iOS 26 phones.

Are you able to share your project "as is" with us to look at? If it's in a public place, you can share a link to it here. If you need to keep it private but are willing to share it with us to figure out where this is coming from, you can open a code-level support request, and we can facilitate a private file transfer that way.

— Ed Ford,  DTS Engineer

App can't debug on iOS 26 device, but can on iOS 18
 
 
Q