手闲把iPhone8升级到15.4,XCode13真机调试提示:Failed to prepare device for development ,找了下Google,又是SDK与真机版本不一致导致,解决方法有:
1,下载最新的XCode13.3,
2,下载单独的SDK for 15.4,下面介绍第二种方法,直接下载一个SDK即可。下载网站
https://github.com/filsv/iPhoneOSDeviceSupport/issues
Details
Failed to prepare device for development.
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 support development.
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402653066
User Info: {
DVTRadarComponentKey = 261622;
MobileDeviceErrorCode = "(0xE8000076)";
"com.apple.dtdevicekit.stacktrace" = (
0 DTDeviceKitBase 0x0000000122587316 DTDKCreateNSErrorFromAMDErrorCode + 220
1 DTDeviceKitBase 0x00000001225c3572 -[DTDKMobileDeviceToken _mountDeveloperDiskImage:withError:] + 1027
2 DTDeviceKitBase 0x00000001225c3f86 __58-[DTDKMobileDeviceToken mountDeveloperDiskImageWithError:]_block_invoke + 614
3 libdispatch.dylib 0x00007fff202e9806 _dispatch_client_callout + 8
4 libdispatch.dylib 0x00007fff202f65ce _dispatch_lane_barrier_sync_invoke_and_complete + 60
5 DTDeviceKitBase 0x00000001225c3cc0 -[DTDKMobileDeviceToken mountDeveloperDiskImageWithError:] + 185
6 IDEiOSSupportCore 0x000000011aea3af6 __37-[DVTiOSDevice(Connect) hasConnected]_block_invoke_2 + 141
7 DVTFoundation 0x00000001094003c7 __DVT_CALLING_CLIENT_BLOCK__ + 7
8 DVTFoundation 0x0000000109403fa2 __DVTDispatchGroupAsync_block_invoke + 931
9 libdispatch.dylib 0x00007fff202e8623 _dispatch_call_block_and_release + 12
10 libdispatch.dylib 0x00007fff202e9806 _dispatch_client_callout + 8
11 libdispatch.dylib 0x00007fff202ec228 _dispatch_continuation_pop + 543
12 libdispatch.dylib 0x00007fff202eb887 _dispatch_async_redirect_invoke + 708
13 libdispatch.dylib 0x00007fff202f8818 _dispatch_root_queue_drain + 326
14 libdispatch.dylib 0x00007fff202f8f70 _dispatch_worker_thread2 + 92
15 libsystem_pthread.dylib 0x00007fff20490417 _pthread_wqthread + 244
16 libsystem_pthread.dylib 0x00007fff2048f42f start_wqthread + 15
);
}
--
System Information
macOS Version 11.5.2 (Build 20G95)
Xcode 13.0 (19211.1) (Build 13A5201i)
Timestamp: 2022-03-19T17:52:45+08:00
开发相关,项目支持请与我联系,微信公众号:IT大顾问