aryaxt
aryaxt

Reputation: 77616

Cocoapods - xcode-select: error: tool 'xcodebuild' requires Xcode

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.

Upvotes: 8

Views: 9313

Answers (2)

Ricardo Anjos
Ricardo Anjos

Reputation: 1427

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.

Upvotes: 4

aryaxt
aryaxt

Reputation: 77616

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

Upvotes: 39

Related Questions