无法更新命令行工具,因为 Xcode 告诉我我无权访问它们
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9819764/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Can't update command line tools because Xcode tells me I don't have access to them
提问by Matthias Bauch
I'm using Xcode 4.3.2 and it tried to install an update to the command line tools.
I clicked the update button and Xcode told me that [my apple id] does not have access to Command Line Tools. (Contact Apple Developer Support to resolve account access issues.)
我使用的是 Xcode 4.3.2,它尝试安装命令行工具的更新。我点击了更新按钮,Xcode 告诉我[my apple id] does not have access to Command Line Tools. (Contact Apple Developer Support to resolve account access issues.)
The problem happened with 4.3.1 too, I just did the update to 4.3.2 because I thought that it will resolve the issue.
4.3.1 也出现了这个问题,我只是更新到 4.3.2,因为我认为它会解决问题。
My account is a paid Mac + iOS Developer account. I am pretty sure I should have access to these tools. But Xcode tells me I don't. I logged in to the developer portal and checked for new Terms of Service too. Everything looks alright.
我的帐户是付费的 Mac + iOS 开发者帐户。我很确定我应该可以使用这些工具。但是 Xcode 告诉我我没有。我登录了开发者门户并检查了新的服务条款。一切看起来都很好。
How can I install the update? Does anybody have a solution for this?
如何安装更新?有人对此有解决方案吗?
采纳答案by Alladinian
Yes its all over the Twitter... Just go to Apple Downloadsand manually install it. They are investigating the issue as far as I know
是的,它遍布整个 Twitter……只需转到Apple 下载并手动安装即可。据我所知,他们正在调查这个问题
回答by Jesper Christensen
Dominik Porada details the solution at Xcode 4.5 and iOS 5.1 Simulator, ie. download the old XCode 4.4.1 from Apple and pull out the simulation. Personally, I just copied the simulator from one of my other Macs that I hadn't upgraded XCode on yet.
Dominik Porada 详细介绍了Xcode 4.5 和 iOS 5.1 Simulator 中的解决方案,即。从 Apple 下载旧的 XCode 4.4.1 并拉出模拟。就我个人而言,我只是从我尚未升级 XCode 的其他 Mac 之一复制了模拟器。
回答by caktux
Not sure if it's still relevant but xcode-select --install
might do it.
不确定它是否仍然相关,但xcode-select --install
可能会这样做。
回答by MultiColourPixel
I had the same problem last night after the update to Mountain Lion and Xcode 4.4.
昨晚更新到 Mountain Lion 和 Xcode 4.4 后,我遇到了同样的问题。
This morning I tried to build something in xcode and it told me that developer mode wasn't enabled on the mac. Once I enabled it, I tried to download the command tools again and that happened to work fine now.
今天早上我尝试在 xcode 中构建一些东西,它告诉我在 mac 上没有启用开发者模式。启用它后,我尝试再次下载命令工具,现在正好可以正常工作。