Step 1: Install XCode Install XCode from App Store.
If XCode available on App Store is not compatible with your OS:
Find XCode version compatible to your OS from this table https://en.wikipedia.org/w/index.php?title=Xcode#Version_comparison_table Go to this webpage https://developer.apple.com/download/more/ Login if you have apple developer account else create your account and login. Search for xcode and download the version compatible to your OS. Install XCode.