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
  • 73,272
  • 89
  • 288
  • 432

2 Answers2

38

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

aryaxt
  • 73,272
  • 89
  • 288
  • 432
  • 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
3

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,377
  • 17
  • 22