To install XCode, perform the following steps:
Download XCode from the App Store or from the following link: https://developer.apple.com/xcode/download/. The installation file (.dmg) is saved in the Downloads folder.
When you download software from the App Store for the first time, you need to provide payment information, such as credit card number, billing address, phone etc. This is just a verification procedure that charges 1 USD, which is refunded after verification. Once you provide the payment information, you can download XCode from the App Store. |
Refer the following page: