To install XCode on your machine, follow the following instructions:
Install XCode from Apple App Store
Run/Open Xcode once to ensure that Command Line Tools have been installed
If command line tools have not been installed, then, after completing XCode installation, open command-line terminal
Run the following command in the terminal
xcode-select --installIn the pop-up screen, the system will ask for confirmation of installation of Command Line Tools
Confirm by clicking on ‘Install’
Signing in to XCode
- Open Xcode
- Go to Xcode -> Preferences -> Accounts
- Click on the ‘+’ icon to add an account
- Sign in with your Apple ID
- Click on ‘Download Manual Profiles’
- Click on ‘Manage Certificates’
- Click on the drop down at the bottom-left of the window
- Select the option ‘Apple Development’
- A new active iOS Development Certificate is seen on the list of certificates. Click on ‘Done’.
- Go to Xcode -> Preferences -> Locations
- Click on the ‘Command Line Tools’ dropdown and select your version of Xcode