我尝试从developer.apple.com和应用商店安装XCode 6.1.1,还尝试从developer.apple.com安装开发人员工具。
但无论哪种方式,都无法安装xcode-select
。
xcode-select --install
-bash: xcode-select: command not found
我确保它可以在我的PATH
变量中看到/usr/bin
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
但事实证明,xcode-select
不在bin文件夹中:
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
/usr/bin/xcrun /usr/bin/xmlcatalog /usr/bin/xsubpp5.18
/usr/bin/xed /usr/bin/xmllint /usr/bin/xxd
/usr/bin/xgettext.pl /usr/bin/xpath
/usr/bin/xgettext5.16.pl /usr/bin/xpath5.16
甚至根本就没有在我的系统上:
k$ sudo find / | grep xcode-select
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/share/man/man1/xcode-select.1
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/share/man/man1/xcode-select.1
find: /dev/fd/3: Not a directory
find: /dev/fd/4: Not a directory
/Users/k/.Trash/Xcode 00-40-10.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/share/man/man1/xcode-select.1
/Users/k/.Trash/Xcode 00-40-10.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/share/man/man1/xcode-select.1
/Users/k/.Trash/Xcode 21-31-08-775.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/share/man/man1/xcode-select.1
/Users/k/.Trash/Xcode 21-31-08-775.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/share/man/man1/xcode-select.1
/Users/k/.Trash/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/share/man/man1/xcode-select.1
/Users/k/.Trash/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/share/man/man1/xcode-select.1/usr/share/man/man1/xcode-select.1
我该怎么做?
其他XCode信息: 第一次打开Xcode时,当我点击“接受条款”时,它卡住了,所以我不得不强制退出。现在Xcode会打开,但如果我尝试进入“首选项”中的“位置”部分,它会卡住。这是我在第一次打开Xcode并进入“首选项”中的“位置”部分时从控制台获得的错误列表。 http://i.stack.imgur.com/YyMgR.png 感谢您的帮助!