Cocoapods - xcode-select:错误:工具'xcodebuild'需要Xcode

时间:2014-10-01 16:33:57

标签: cocoapods

运行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.

2 个答案:

答案 0 :(得分:14)

在Xcode中,转到首选项,然后转到位置并确保设置了“命令行工具”

答案 1 :(得分:0)

这对我来说是固定的:

1-安装Xcode

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

请参见此link上的说明。