After download Xcode 12 beta I get this error messing during configuration.
This issue is for when you use beta version then sometimes it’s not stable or getting old Xcode cache.
The best solution is to please use Xcode 11.4.1
Download: https://developer.apple.com/download/more/?=xcode
In case if not solve or you want to keep using this version then follow this: https://stackoverflow.com/questions/46726077/module-compiled-with-swift-4-0-cannot-be-imported-in-swift-4-0-1
i have stable xcode 12 still the same issue
You are using Xcode 12 that is the use read the solution again. It’s mention that you need to use 11.4.1 to resolve the issue.