Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

cocoapods

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.
like image 883
aryaxt Avatar asked Oct 01 '14 16:10

aryaxt


People also ask

Does Xcodebuild require Xcode?

The whole point is that 'xcodebuild' requires Xcode, i.e., a full install of Xcode, nor CommandLineTools.

What is Xcodebuild?

The main goal of Xcode Build System is to orchestrate execution of various tasks that will eventually produce an executable program. Xcode runs a number of tools and passes dozens of arguments between them, handles their order of execution, parallelism and much much more.

How do I find Xcode path on Mac?

In Finder, select the Go pull-down menu, and select Applications. Or just use the short-cut key Command-Shift-A while Finder is active. This should open a new Finder window, showing all the Applications installed on your machine. Look for the XCode icon in the Applications folder.

How do I download Xcode on Mac terminal?

Download the latest version of Xcode from the Apple developer website or get it using the Mac App Store. Once you have Xcode installed, open a terminal, run xcode-select --install , and click the Install button to install the required command line developer tools.


1 Answers

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

like image 200
aryaxt Avatar answered Sep 22 '22 04:09

aryaxt