我正在尝试关注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/