The latest version of XCode takes up 11.6 GB. The reason why it takes up that much space is that it contains many other large and complex tools and tons of data about every supported Apple OS.