You may have to sign up for a free Apple Developer Account in order to download Xcode 10 from the developer link that BDAqua provided — unless Apple has relaxed its access privileges for these tools.
Alternatively, If all you want is a a compilation environment for Objective-C, C++, and Swift v4.n, the Command Line Tools (macOS 10.13) for Xcode will provide that at 7GB less storage. You would then need a competent programmer's editor, and you can still build hand-coded cocoa applications. This is my preference.
Additional Downloads
The latest version of Xcode is 12.1 on Mac Informer. It is a perfect match for RSS in the Internet Tools category. The app is developed by Apple Inc. And its user rating is 3.9 out of 5. The Xcode used to work only on Lion but there are some new SDKs available for iOS 7, OS X 10.8 Mountain Lion, and OS X 10.9 Mavericks as well. This helps in making sure that the developers gain more control and make more compatible apps.
Get the latest beta and older versions of Xcode. To view downloads, simply sign in with your Apple ID. Apple Developer Program membership is not required.
Beta Versions of Xcode
Command Line Tools & Older Versions of Xcode
Videos
See the latest advances in Xcode presented at WWDC and other events.
Download Xcode 9 Dmg For Mac
Help and Support
Get step-by-step guidance on how to use Xcode to build, test, and submit apps to the App Store.
Xcode Help Guide
Xcode Support Page
API Reference and Sample Code
Xcode 9.2 Download
Browse the latest documentation including API reference, articles, and sample code.
Xcode 7
Discussion Forums
Download Old Xcode Versions
Ask questions and discuss development topics with Apple engineers and other developers.