I recently had to figure out which version of Xcode was used to build an
.ipa file (iOS application).
Xcode adds some extra entries to the
Info.plist file. Steps:
.ipato a temporary location
A good reference for dates/versions of Xcode is at xcodereleases.com
A complete script to do this is here