gpt4 book ai didi

ios12 - iOS Xcode 10 如何修复损坏的 "New build system"- build.db : database is locked Possibly there are two concurrent builds

转载 作者:行者123 更新时间:2023-12-04 17:39:57 26 4
gpt4 key购买 nike

我遇到了臭名昭著的问题:

"/Users/n/Library/Developer/Xcode/DerivedData/Build/Intermediates/XCBuildData/build.db": database is locked Possibly there are two concurrent builds running in the same filesystem location



如何修复损坏的“现代”构建系统被锁定的数据库卡住?

我试过:
  • 清洁工程
  • 删除派生数据
  • 更新 cocoapods (sudo gem...) 和 pod install
  • 从 App Store 重新安装完全清除 Xcode 文件夹

  • 现在我有了全新的 Xcode 安装,该项目适用于十几个版本(真实设备和模拟器),问题又回来了,使我无法处理项目。 如何重置 build.db 上的锁定或将其删除?

    我看到这个问题被问了很多次,答案并没有解决我的问题。我没有使用构建脚本,我只有几个 cocoapods。请不要关闭这个问题,因为我特别询问缺乏:
  • 无自定义脚本
  • 无控制台构建
  • 无复合靶

  • 唯一能让我继续工作的是转向遗留构建系统:

    enter image description here

    enter image description here

    How can I use the legacy build system with Xcode 10's `xcodebuild`?

    Xcode 10: unable to attach DB error

    最佳答案

    到目前为止,解决此问题的唯一方法是在"file">“工作区”设置中打开“旧版构建系统”。在一定次数的计算机重新启动(或耗时?)后,可以再次将设置更改为"new"构建系统,它就会构建。

    关于ios12 - iOS Xcode 10 如何修复损坏的 "New build system"- build.db : database is locked Possibly there are two concurrent builds,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54968947/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com