Error when building Swift with the Xcode option

I'm trying to build Swift and choose the --xcode option, but I have errors like this that are constantly repeated:

iPhoneSupport: 📱<DVTiOSDevice (0x7fb7ba66ac40), iPhone de Trevör, iPhone, 13.0 (17A5565b), [a device id]> unable to mount DeveloperDiskImage (Error Domain=com.apple.dtdevicekit Code=-402653052 "Xcode encountered an error" UserInfo={NSLocalizedFailureReason=This device is no longer connected., com.apple.dtdevicekit.stacktrace=(

Is there something I can do about this?

1 Like

Maybe it's because you're running an older Xcode 11 beta and a newer iOS 13 beta?

I faced the same problem, but I have the latest Xcode (11 beta 7) and an old iOS 13 beta.

iPhoneSupport: 📱<DVTiOSDevice (0x7fde2ca6fdd0), iPhone (Ivan), iPhone, 13.0 (17A5572a), 00008020-0008759001E9002E> unable to mount DeveloperDiskImage (Error Domain=com.apple.dtdevicekit Code=-402653052 "Xcode encountered an error" UserInfo={NSLocalizedFailureReason=This device is no longer connected., com.apple.dtdevicekit.stacktrace=(
0   DTDeviceKitBase                     0x0000000115a772d7 DTDKCreateNSError + 109
1   DTDeviceKitBase                     0x0000000115a779d9 DTDK_AMDErrorToNSError + 792
2   DTDeviceKitBase                     0x0000000115a8e81d -[DTDKCopyValueRequest finishWithResult:andError:] + 355
3   DTDeviceKitBase                     0x0000000115a8a4be __60-[DTDKRemoteDeviceConnection _primitiveDrainPendingRequests]_block_invoke_3 + 213
4   DVTFoundation                       0x00000001051cd82a __DVT_CALLING_CLIENT_BLOCK__ + 7
5   DVTFoundation                       0x00000001051cef02 __DVTDispatchAsync_block_invoke + 809
6   libdispatch.dylib                   0x00007fff7efb75f8 _dispatch_call_block_and_release + 12
7   libdispatch.dylib                   0x00007fff7efb863d _dispatch_client_callout + 8
8   libdispatch.dylib                   0x00007fff7efbade6 _dispatch_continuation_pop + 414
9   libdispatch.dylib                   0x00007fff7efba4a3 _dispatch_async_redirect_invoke + 703
10  libdispatch.dylib                   0x00007fff7efc63bc _dispatch_root_queue_drain + 324
11  libdispatch.dylib                   0x00007fff7efc6b46 _dispatch_worker_thread2 + 90
12  libsystem_pthread.dylib             0x00007fff7f1f86b3 _pthread_wqthread + 583
13  libsystem_pthread.dylib             0x00007fff7f1f83fd start_wqthread + 13
), DVTRadarComponentKey=487927, NSLocalizedDescription=Xcode encountered an error})

Yeah, I think you need to use the latest Xcode beta and iOS 13 beta. Although I don't think Xcode 11b7 has the developer image for iOS 13.1...

Anyway, my project was build successfully, even with these errors

Thanks to everyone for your replies, I'll try it again with the correct versions!

I don't actually get this as an error though (more like a warning/note), I am able to build the compiler just fine.

Terms of Service

Privacy Policy

Cookie Policy