The Xcode Tools are written by Apple to run on Macs; they have no reason to avoid internal APIs, and when dealing with App Store-related concerns, they probably do use them heavily.