Added Automatic Check for iOS 6 if running in Xcode run script

Added Automatic Check for iOS 6 if running in Xcode run script uses
Xcode targets to get version number