I\'m on the latest beta version of Xcode (Xcode 4.5 with iOS 6.0). I\'ve got an xcode project for an iphone app and I want to add a Unit Test target on it. I\'ve followed ca
Xcode -> Preferences -> Locations -> Command Line Tools => Select the one matches with SDK.
EDIT:
EDIT 2: For some people, the above method works. If not, please try:
It seems that this issue was a result of switching between more than one version of SDKs, and could be solved by specifying the current SDK as the active one with a terminal command(, which requires root privilege):
$ sudo xcode-select --switch