I have found a workaround - change the location of DerivedData folder in Xcode Workspace settings (File -> Workspace Settings) to something else.
DerivedData