'Module compiled with Swift 5.3.2 cannot be imported by the Swift 5.6 compiler

After updating to Xcode 13 and trying to run my app on an iOS 15.4 simulator, I get the following error (note, this is not a repeat question).

This error doesn't occur when I run my app on an iOS 14.X simulator in Xcode 12, so why is it happening now?

Module compiled with Swift 5.3.2 cannot be imported by the Swift 5.6 compiler

What is causing this error and what steps need to be taken to fix it?

Error image

Error image #2



Solution 1:[1]

Clear derive data to remove compiled module of old version. Then run again

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Anish Kumar