1: Go to application folder on your Mac.
2: You will find Xcode app, Right Click on it.
3: Select "Show Package Content", it will redirect to "Contents" folder.
4: You will find "MacOS" folder inside "Contents" folder.
5: Open "MacOS" folder you will find "Xcode" option inside it.
7: Double click Xcode option and it will open it automatically in terminal and will run some command. Let it complete.
8: Now open Xcode it will work.