xcode 如何降级命令行工具 MacOS
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/41327298/
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
How to downgrade command line tools MacOS
提问by Curious
I got a dynamic linker error with the __clock_gettime
symbol so I did what this post said Missing symbol when installing ruby-2.3.0 on OS X 10.11.6 by RVM(i.e. xcode-select --install
) and now I am getting loader errors that say that libraries were built for a newer OS version than the one I am currently running on, I dont want to upgrade my OS to the newer (Sierra) version though, is there a way you can downgrade the command line tools to an older version (10.11?)
我收到了一个带有__clock_gettime
符号的动态链接器错误,所以我做了这篇文章所说的在 OS X 10.11.6 上通过 RVM(即xcode-select --install
)安装 ruby-2.3.0 时缺少符号,现在我收到加载器错误,说库是为比我目前运行的操作系统版本更新的操作系统版本,但我不想将我的操作系统升级到更新的(Sierra)版本,有没有办法将命令行工具降级到旧版本(10.11?)
回答by l'L'l
回答by bardukb
Command Line tools come with Xcode. If you delete and downgrade Xcode it should do the trick. Once you delete Xcode from you applications, use "Previous versions of Xcode can also be downloaded here" link in https://developer.apple.com/support/xcode/. SPOILER ALERT: You need to have/create an apple dev account for this
命令行工具随 Xcode 一起提供。如果您删除并降级 Xcode,它应该可以解决问题。从应用程序中删除 Xcode 后,请使用https://developer.apple.com/support/xcode/ 中的“也可以在此处下载以前版本的 Xcode”链接。 剧透警告:您需要为此拥有/创建一个苹果开发帐户