您当前的位置: 首页 > 技术文章 > 移动开发

iOS开发笔记:SDK for iOS15.4 #XCode13

作者: 时间:2022-04-17阅读数:人阅读

手闲把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大顾问

本站所有文章、数据、图片均来自互联网,一切版权均归源网站或源作者所有。

如果侵犯了你的权益请来信告知我们删除。邮箱:licqi@yunshuaiweb.com

标签: iOS开发笔记
加载中~
如果您对我们的成果表示认同并且觉得对你有所帮助可以给我们捐赠。您的帮助是对我们最大的支持和动力!
捐赠我们
扫码支持 扫码支持
扫码捐赠,你说多少就多少
2
5
10
20
50
自定义
您当前余额:元
支付宝
微信
余额

打开支付宝扫一扫,即可进行扫码捐赠哦

打开微信扫一扫,即可进行扫码捐赠哦

打开QQ钱包扫一扫,即可进行扫码捐赠哦

天猫38节现货-全屋智能