LoginSignup
7
7

More than 3 years have passed since last update.

xcodebuildでerror: unable to attach DB: error: accessing build database への対処法

Posted at


error: unable to attach DB: error: accessing build database "/Users/username/Library/Developer/Xcode/DerivedData/app-xxxxxxx/Build/Intermediates.noindex/XCBuildData/build.db": database is locked Possibly there are two concurrent builds running in the same filesystem location.

原因

Xcode10以前に作られたプロジェクトでは新しいビルドシステムに適合しないらしいので、Legacy Build Systemを採用する必要がある。以下のどちらかで解消できる

対処法1: Xcodeから

  • Xcodeをひらく
  • File -> Project SettingsまたはWorkspace Settings
  • Build SystemをLegacy Build Systemに変更する

image.png

対処法2: コマンドから

オプションに以下を追加する

-UseModernBuildSystem=NO

7
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
7