error: unable to attach DB: error: accessing build database "<somepath>/build/XCBuildData/build.db": database is locked Possibly there are two concurrent builds running in the same filesystem location.

I am getting this error while I am building two projects in parallel. Both these projects have a common sub-project(dependency). Everything was working fine with xcode13.3 and legacy build system. This issue is observed on xcode14.2 (new build system).

Any leads on how to resolve this would be helpful.

error: unable to attach DB: error: accessing build database "&lt;somepath>&#x2F;build&#x2F;XCBuildData&#x2F;build.db": database is locked Possibly there are two concurrent builds running in the same filesystem location.

Also if possible can anyone explain what is build/XCBuildData folder and can we prevent it from not getting created ?

Post not yet marked as solved Up vote post of YBOD Down vote post of YBOD
1.8k views