Disclaimer: To use Xcode you must be using a Mac device running macOS 10.11.5 or later.
1. Open the App Store app on your Mac (by default it’s in the Dock).
2. In the search field in the top-right corner, type Xcode and press the Return key.
3. The Xcode app shows up as the first search result.
4. Click Get and then click Install App.
5. Enter your Apple ID and password when prompted.
6. Xcode is downloaded into your /Applications directory.
1. Open Xcode from your Applications directory
2. If this is the first time you’ve launched Xcode, it may ask you to agree to the user agreement and to download additional components. Follow the prompts through these screens until Xcode is completely set up and ready to launch.
3. In the welcome window, click “Create a new Xcode project” (or choose File > New > Project). Xcode opens a new window and displays a dialog in which you choose a template.
4. Select iOS at the top of the dialog.
5. In the Application section, select Single View Application and then click Next.
6. For Product Name, Organization Name, and Organization Identifier put in whatever information you would like for your app. Make sure Language is set to Swift, and Devices is set to Universal.
7. Click Next, and then select a directory to save the project to (I use Documents). Click Create.