简体   繁体   English

具有Xcode 7-需要6.4与命令行工具

[英]Have xcode 7 - need 6.4 with command line tools

I have OS X Yosemite 10.10.5 with xcode 7 installed. 我安装了带有xcode 7的OS X Yosemite 10.10.5。

Now I have two development tools breaking after I installed xcode 7. 现在,在安装xcode 7之后,我有两个开发工具已损坏。

I need to revert back to 6.4 with command line tools? 我需要使用命令行工具恢复到6.4吗?

Right now I am contemplating: 现在我正在考虑:

  • Move xcode7 to a separate folder for future usage/safekeep 将xcode7移到单独的文件夹中,以备将来使用/安全保留
  • Download xcode 6.4 and move it into /Applications/ 下载xcode 6.4并将其移至/ Applications /
  • Download xcode 6.4 command line tools (can I still use terminal for this? Are command line tools still available for 6.4? ) 下载xcode 6.4命令行工具(我仍然可以使用终端吗? 命令行工具仍可用于6.4吗?
  • Need the ios 8.4 SDK (and download it from where?) 需要ios 8.4 SDK(并从何处下载?)

Will this work? 这样行吗? Is there a better way where I can switch between xcode versions? 有没有更好的方法可以在xcode版本之间进行切换?

You can have multiple copies of Xcode.app installed in /Applications , you just need to rename them. 您可以在/Applications安装Xcode.app多个副本,只需重命名它们即可。

So I would recommend renaming them to Xcode6.app and Xcode7.app and then using xcode-select , or the Xcode Preferences, to decide which version of the Command Line tools to use. 因此,我建议将它们重命名为Xcode6.appXcode7.app ,然后使用xcode-select或Xcode Preferences来确定要使用的命令行工具版本。

You are probably better off downloading them from the Apple Developer Download site , and break your dependence on the Mac App Store installed version, otherwise it might keep hassling you with updates etc. 您最好从Apple Developer Download网站下载它们,并打破对Mac App Store安装版本的依赖,否则它可能会让您烦恼更新等问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM