I have an Xcode project which was downloaded from the internet so I don\'t know which Xcode version was used to write it but the language is Swift 2. I opened it in Xcode 7.
The only correct solution for me that takes only a moment to perform is to delete ~/Library/Developer/CoreSimulator
and all of its contents. Immediately after this the build completes successfully.
I believe the solutions that state to reinstall Xcode, ultimately refresh the CoreSimulator folder, that's why they are successful in resolving the issue.
I started experiencing the error after having upgraded to MacOS Big Sur, while using Xcode 11.6 and Xcode 11.7.
Maybe you have just cleaned Logs
directory...Then you can try this:
sudo chmod 777 /Users/[YourUserName]/Library/Logs