I'm trying to add iOS as a platform for my app but when I run: ionic platform iOS I get the error "Cordova can only run in Xcode version 4.6 or greater." I have Xcode 5.1.1 installed which comes with the command-line tools. I have tried: sudo xcode-select --switch /Applications/Xcode.app but when I run: xcodebuild -version it says I have Xcode version 4.4 installed.
I've been stuck on this for a while now so any help is appreciated. Thanks.