Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter: database is locked Possibly there are two concurrent builds running in the same filesystem location

Tags:

xcode

flutter

Trying to run the app on my two iOS devices by doing flutter run -d all. However, I am getting database is locked Possibly there are two concurrent builds running in the same filesystem location. error.

What have I tried

  • flutter clean
  • flutter run separately
  • running the app on iPad on the terminal & on iPhone on xCode works

So, it looks like I am having a problem to run Flutter app on my two iOS devices at the same time.

Is there any solution for this?

like image 876
chichi Avatar asked Sep 12 '25 11:09

chichi


1 Answers

Just remove DerivedData

rm -rf ~/Library/Developer/XCode/DerivedData

Path will be shown in error which you get in console.

and then rebuilt it

like image 196
Chintan Hingrajiya Avatar answered Sep 15 '25 04:09

Chintan Hingrajiya