8

I get the folowing error when running pod spec lint

 -> iOS-Slide-Menu (1.4.3)
    - ERROR | [iOS] [xcodebuild]  xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

Analyzed 1 podspec.

[!] The spec did not pass validation.
aryaxt
  • 76,198
  • 92
  • 293
  • 442

2 Answers2

39

In Xcode, go to preferences, then locations and make sure a "Command Line Tools" is set

aryaxt
  • 76,198
  • 92
  • 293
  • 442
  • worked for me too! lots of other solutions posted out there, and none worked for me, except for this one. nice and simple. – jersey bean Aug 09 '19 at 22:40
4

This fixed it for me:

1 - Install Xcode

2 - Run sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

See this explanation on this link.

Ricardo Anjos
  • 1,417
  • 18
  • 22