ios - Xcode 5.1 无法找到实用程序 "make",不是开发人员工具或在 PATH 中

标签 ios command-line protocol-buffers

我正在尝试关注these directions安装 Google Protocol Buffers。创建脚本后,我尝试使用以下命令运行它:

$ ./build-proto-ios.sh

我收到以下输出:

mkdir: ios-build: File exists
Platform is iPhoneSimulator
./build-proto-ios.sh: line 40: ./configure: No such file or directory
make: error: unable to find utility "make", not a developer tool or in PATH
make: error: unable to find utility "make", not a developer tool or in PATH
cp: src/.libs/libprotobuf-lite.a: No such file or directory
Platform is iPhoneOS
./build-proto-ios.sh: line 40: ./configure: No such file or directory
make: error: unable to find utility "make", not a developer tool or in PATH
make: error: unable to find utility "make", not a developer tool or in PATH
cp: src/.libs/libprotobuf-lite.a: No such file or directory
Platform is iPhoneOS
./build-proto-ios.sh: line 40: ./configure: No such file or directory
make: error: unable to find utility "make", not a developer tool or in PATH
make: error: unable to find utility "make", not a developer tool or in PATH
cp: src/.libs/libprotobuf-lite.a: No such file or directory
make: error: unable to find utility "make", not a developer tool or in PATH
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: ios-build/libprotobuf-lite-armv7.a (No such file or directory)

因此,我查找了以下信息:

unable to find utility "make", not a developer tool or in PATH

我找到了this information用于安装 Xcode 命令行工具,因为我认为这可能是原因。但即使在安装了 OS X Mavericks 的最新命令行工具后,我仍然收到此错误。

有什么想法吗?

最佳答案

1) xcode-select -p ->/Applications/Xcode.app/Contents/Developer

2) sudo xcode-select --switch/Library/Developer/CommandLineTools

3) xcode-select -p ->/Library/Developer/CommandLineTools

4) eval "$(rbenv init -)"

5) rbenv 安装 2.5.3

6) rbenv 本地 2.5.3

此外,请查看 xcode 是否已正确更新

关于ios - Xcode 5.1 无法找到实用程序 "make",不是开发人员工具或在 PATH 中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23836149/

相关文章:

java - .proto 文件中 "Value"类的含义是什么

c++ - 您能否将相同的 protobuf 消息静态链接到多个 DLL - 然后让这些 DLL 协同工作?

ios - 这个IOS设备测试崩溃是否在预料之中

ios - 在一些观察者完成/处置后保留主题 "listening"

windows - 列出具有文件大小的给定结构中的所有文件夹和子文件夹

command-line - 如何从命令行确认 Solr 正在运行?

iphone - iPhone 的 Facebook 分享按钮

ios - 如何以编程方式从头到尾缓慢地滚动 UIScrollView

database - "permission denied"用于 pg_dump 输出文件

python - 获得 fastpython protobuf 支持的问题