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
に変更する
対処法2: コマンドから
オプションに以下を追加する
-UseModernBuildSystem=NO