小编Kri*_*hes的帖子

Xcode is installed but I can't use xcode-select "xcode-select: command not found"

I tried installing XCode 6.1.1 from both developer.apple.com and through the app store. I also tried installing the developer tools developer.apple.com.

Either way, it doesn't install xcode-select for some reason.

xcode-select --install
-bash: xcode-select: command not found
Run Code Online (Sandbox Code Playgroud)

I made sure it could see /usr/bin in my PATH variable

k$ echo $PATH
/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/System/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/texbin:/Users/k/.rvm/bin:/Users/k/.rvm/bin
Run Code Online (Sandbox Code Playgroud)

But turns out that xcode-select not in the bin folder:

k$ ls /usr/bin/x*
/usr/bin/xar             /usr/bin/xgettext5.18.pl /usr/bin/xpath5.18
/usr/bin/xargs           /usr/bin/xip             /usr/bin/xslt-config
/usr/bin/xattr           /usr/bin/xjc             /usr/bin/xsltproc
/usr/bin/xattr-2.6       /usr/bin/xml2-config     /usr/bin/xsubpp
/usr/bin/xattr-2.7       /usr/bin/xml2man         /usr/bin/xsubpp5.16 …
Run Code Online (Sandbox Code Playgroud)

macos xcode xcode6.1

3
推荐指数
2
解决办法
2万
查看次数

标签 统计

macos ×1

xcode ×1

xcode6.1 ×1