ios - Xcode 12 : Failed to start remote service "com.apple.debugserver" on iOS device

标签 ios xcode debugging ios14 xcode12

我将 Xcode 更新为 Version 12.4 (12D4e)之后我无法在我的设备上运行我的应用程序iPhone X iOS 14.4.2 .
它总是显示这个错误
enter image description here
当我检查我的设备连接状态时,它显示为已连接
enter image description here
我应用的操作

  • 清除 DerivedData文件夹。
  • 取消配对设备并重新连接。
  • 喝了 20 多种咖啡。
  • 最佳答案

    我能够修复上述 Xcode 12 应用程序安装/部署问题:

    Failed to start remote service "com.apple.debugserver" on device.
    
    Domain: com.apple.dtdevicekit  
    Code: 811
    Recovery Suggestion: Please check your connection to your device. 
    User Info: {  
      DVTRadarComponentKey = 261622;  
    }
    ...
    
    通过执行以下步骤:
  • 退出 Xcode。
  • 删除 Xcode 缓存目录(即 rm -rf ~/Library/Caches/com.apple.dt.Xcode )。
  • 重新启动有问题的 iOS 设备。
  • 通过电缆(而不是无线网络连接)将 iOS 设备连接到 Xcode。
  • 再次启动 Xcode。

  • 顺便说一句,我有一个非常接近你的设置:
  • Xcode 12.5(内部版本 12E262)
  • iOS 14.5.1 (在 iPhone X 设备上)
  • 关于ios - Xcode 12 : Failed to start remote service "com.apple.debugserver" on iOS device,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67173038/

    相关文章:

    iOS:拥有具有 Firebase 授权的用户名

    ios - 两个PFObject可以互相指向吗?

    ios - 如何在 collectionView 中一次播放一个视频?

    ios - Xcode - 无法重新创建证书和签名配置文件

    php - 是否有像 ruby​​ 调试器一样的 php 交互式调试器?

    ios - 在没有网络时在网页中执行操作时关闭 WKWebview

    ios - 试图从文档目录中删除文件

    ios - 如何处理大型 Swift 项目?

    cordova - Visual Studio 2015 Cordova Tools - 启动 Ripple 时出现错误 "scriptedsandbox64.exe has stopped working"

    c# - 在 Visual Studio 远程调试中未命中断点