If you use PhoneGap CLI (or Cordova CLI) to create iOS project, you may found error like this:
xcrun error ... active developer path
This isn’t serious problem. It might caused from upgrading OS X or XCode to new version (ex. upgrade from OS X Lion to Mavericks, or from XCode 5.0 to 5.1) and left the old XCode’s path remains.
You just have to set XCode’s path to current path with this command:
sudo xcode-select -switch /Applications/Xcode.app
following with your administrator’s password, your problem should be solved.
Thank you guys in this Stack Overflow’s thread here.