Visibility.h has been modified since the module file ... was built?

SwiftUI Previews in Xcode 13.2.1 (13C100) are failing for me with:

file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/usr/lib/swift/shims/Visibility.h' has been modified since the module file '/var/folders/s_/v2rt7nls5794blqbt6c_gl9c0000gn/C/clang/ModuleCache/2LAIGLYLJJQNA/SwiftShims-2TTN5UXQBRCCQ.pcm' was built: mtime changed

This is after quitting Xcode, deleting derived data, starting Xcode again and building from scratch. Anyone else seeing this problem? Any idea how to fix it?

I also have this issue. When I resume my SwiftUI preview, Xcode show this error. This is very weird that my app's status bar icon missing after this error, even include the release version.

Hi! Try to remove this file. Run command in Terminal

rm /var/folders/s_/v2rt7nls5794blqbt6c_gl9c0000gn/C/clang/ModuleCache/2LAIGLYLJJQNA/SwiftShims-2TTN5UXQBRCCQ.pcm

had this error too deleted the file it referenced and it worked

Visibility.h has been modified since the module file ... was built?
 
 
Q