When I run any ionic command without sudo I get errors. e.g when I run ionic platform add ios
I get Cordova can only run in Xcode version 4.6 or greater. even though I have the most recent Xcode version installed.
However when I use sudo it works. The problem then is that I am not able to emulate. I get this error
Session could not be started: Error Domain=DTiPhoneSimulatorErrorDomain Code=2 "Simulator session timed out." UserInfo=0x7f8cf1700fa0 {NSLocalizedDescription=Simulator session timed out.}
Error: /Users/eanjorin/Projects/neartutors-mobile/platforms/ios/cordova/run: Command failed with exit code 1
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:756:16)
at Process.ChildProcess._handle.onexit (child_process.js:823:5)