运行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.
答案 0 :(得分:14)
在Xcode中,转到首选项,然后转到位置并确保设置了“命令行工具”
答案 1 :(得分:0)
这对我来说是固定的:
1-安装Xcode
2-运行sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
请参见此link上的说明。