'Xcode is damaged and refuse to run the code

When I press "Build" and/or "Run" buttons in Xcode (SwiftUI), it shows me an error and I get this message:

One of the paths in DEVELOPMENT_ASSET_PATHS does not exist: /Users/mohammedshaheen/Downloads/Clicker/Clicker/Preview Content



Solution 1:[1]

This worked with me! If the file "Preview Content" is not existing in your main project file, just create a new file called "Preview Content".

And the name is based on what is shown to you.

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 Mohammed Shaheen