Post not yet marked as solved
I was getting the error after updating my project to consolidate watchOS app extension and app targets. Adding a WKApplication key to the watch app's Info.plist (type: boolean, value: 1) fixed this for me.
Post not yet marked as solved
Still having this issue with Xcode 12 GM and iPhone XR running iOS 13.7 and also iPhone 7 running iOS 14 GM. On a separate Mac using these devices with Xcode works, so I suspect the issue is on the Mac. What can I do to "reset" the dev environment on this Mac?
Domain: com.apple.dtdevicekit
Code: 806
Recovery Suggestion: If you are certain that Xcode supports development on this device, try disconnecting and reconnecting the device.
User Info: {
AssociatedMobileDeviceFunction = AMDeviceMountImage;
DVTRadarComponentKey = 487927;
NSLocalizedFailure = "This operation can fail if the version of the OS on the device is newer than the version of Xcode that is running.";
}-
Could not allocate a resource.
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402653181
User Info: {
DVTRadarComponentKey = 261622;
MobileDeviceErrorCode = "(0xE8000003)";
"com.apple.dtdevicekit.stacktrace" = (
0 DTDeviceKitBase 0x0000000126ef493f DTDKCreateNSErrorFromAMDErrorCode + 220
1 DTDeviceKitBase 0x0000000126f30f58 -[DTDKMobileDeviceToken _mountDeveloperDiskImage:withError:] + 1024
2 DTDeviceKitBase 0x0000000126f31978 __58-[DTDKMobileDeviceToken mountDeveloperDiskImageWithError:]_block_invoke + 609
3 libdispatch.dylib 0x00007fff69233658 _dispatch_client_callout + 8
4 libdispatch.dylib 0x00007fff6923f6ec _dispatch_lane_barrier_sync_invoke_and_complete + 60
5 DTDeviceKitBase 0x0000000126f316b5 -[DTDKMobileDeviceToken mountDeveloperDiskImageWithError:] + 188
6 IDEiOSSupportCore 0x0000000126d85d8c __37-[DVTiOSDevice(Connect) hasConnected]_block_invoke_2 + 258
7 DVTFoundation 0x000000010ae322ba DVT_CALLING_CLIENT_BLOCK + 7
8 DVTFoundation 0x000000010ae37107 __DVTDispatchGroupAsync_block_invoke + 1191
9 libdispatch.dylib 0x00007fff692326c4 _dispatch_call_block_and_release + 12
10 libdispatch.dylib 0x00007fff69233658 _dispatch_client_callout + 8
11 libdispatch.dylib 0x00007fff69235890 _dispatch_continuation_pop + 534
12 libdispatch.dylib 0x00007fff69234f16 _dispatch_async_redirect_invoke + 703
13 libdispatch.dylib 0x00007fff69241957 _dispatch_root_queue_drain + 326
14 libdispatch.dylib 0x00007fff69242097 _dispatch_worker_thread2 + 92
15 libsystem_pthread.dylib 0x00007fff6948d9f7 _pthread_wqthread + 220
16 libsystem_pthread.dylib 0x00007fff6948cb77 start_wqthread + 15
);
}-
System Information
macOS Version 10.15.6 (Build 19G2021)
Xcode 12.0 (17218)
Post not yet marked as solved
I am now getting this crash since installing Xcode 12 beta 6. I was not getting it in any of the previous betas. It happens on every launch, same assertion failure and callstack as above.
As a workaround, I ended up just moving the xip to a large external HDD, extracting it there, then copying the Xcode12-beta.app back over to my main volume. I had 14GB of 'purgeable' space showing in Disk Utility fwiw.
Post not yet marked as solved
I am experiencing this problem with my watchOS app. On Xcode 8 / Switft 3 my watchOS app was under 50MB but after switching to Xcode 9 and updating my app to Swift 3.2 using the migrator (no other code changes or additions) my watch app is now 58MB and I am not able to submit updates to the App Store. The only files that inceased in size between the two versions are the swift runtime libraries.