1. First open the computer, enter the page, and click Start in the lower left corner of the screen.
2. Secondly, enter cmd to enter the command prompt.
3. Enter Xattr-D com.apple.quarantine/Applications/Xcode.app to solve the problem.