美文网首页@IT·互联网
Error (Xcode): unable to attach

Error (Xcode): unable to attach

作者: 黑炭长 | 来源:发表于2024-05-09 17:48 被阅读0次
    场景

    要接手一个flutter项目 速速的开始调试环境 发现使用vscode调试的时候一直卡在flutter launching 不动,使用命令行运行项目 提示

    Error (Xcode): unable to attach DB: error: accessing build database(Flutter) ld.db": database is locked Possibly there are two concurrent builds running in the same filesystem location.

    使用flutter clean 再次调试 依然没效果

    打开活动检测器 使用vscode调试 会启动两个 cxbuildservce,怀疑是两个同事build导致的,强制结束一个 没有效果

    解决

    百度上搜索了该问题 解决方式 没效果

    果断google
    解决地址

    rm -rf ~/Library/Developer/Xcode/DerivedData/
    pod deintegrate
    pod update

    当然 最后两步应该也可以不执行,希望对碰到该问题的人 有帮助

    相关文章

      网友评论

        本文标题:Error (Xcode): unable to attach

        本文链接:https://www.haomeiwen.com/subject/txdsfjtx.html