Problem in installing Xcode on MacBook Air 2017 with macos Mojave version 10.14.5 I am trying to download Xcode from the mac app store but it fails again and again. I am using my mobile hotspot for internet. It has a daily data limit of 2.5 GB but Xcode is of 6.1 GB. Once I put Xcode on download from the app store and it processed till 2 GB and then it failed saying slow internet connection. I also tried to pause the download in between but on resuming, it restarts from the starting. I also tried to download it from Apple's website but that also didn't work. Please help with this issue.
You can try to download bittorrent version of Xcode but there's always a risk of downloading files from unknown source and you may not be able to find the latest version, as I could only find Xcode 9.

Side note: In the past, I would've recommended a tool called ADCDownload, which allows you to resume downloads from Apple Developer website. But it hasn't been updated in awhile, and likely  no longer working.