Solution 1:
Open terminal and run below commands
cd /Applications
xattr -d com.apple.quarantine Xcode.app
This will bypass Gatekeeper in OS X and launch Xcode quickly.
Open terminal and run below commands
cd /Applications
xattr -d com.apple.quarantine Xcode.app
This will bypass Gatekeeper in OS X and launch Xcode quickly.