Lion Xcode 4.3 中缺少 /developer 目录

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9539449/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 23:30:23  来源:igfitidea点击:

/developer directory is missing in Lion Xcode 4.3

iosxcodeosx-lion

提问by homam

I removed an older version of Xcode following the instructions in How to fully remove Xcode 4and then installed version 4.3 from AppStore. But now /developer directory is missing.

我按照如何完全删除 Xcode 4 中的说明删除了旧版本的 Xcode ,然后从 AppStore 安装了 4.3 版。但是现在 /developer 目录丢失了。

I can find the same directory structure in /applications/xcode.app/contents/Developer/. Is /developer just a link to that directory and how can I create it again?

我可以在 /applications/xcode.app/contents/Developer/ 中找到相同的目录结构。/developer 只是指向该目录的链接,我该如何再次创建它?

回答by jonkroll

According to the XCode 4.3 release notes, the /developer directory is no longer needed.

根据XCode 4.3 发行说明,不再需要 /developer 目录。

/Developer No Longer Exists

The simplification afforded by repackaging Xcode 4.3 as a single app bundle eliminates the need for the /Developer directory containing prior versions of Xcode. As a result, the Install Xcode application and the uninstall-devtools command line script are also no longer needed.

/开发者不再存在

将 Xcode 4.3 重新打包为单个应用程序包所提供的简化消除了对包含先前版本 Xcode 的 /Developer 目录的需要。因此,也不再需要安装 Xcode 应用程序和卸载开发工具命令行脚本。

回答by sch

The /Developer directory is no longer used by Xcode as jonkrollnoted.

正如jonkroll 所指出的,/Developer 目录不再被 Xcode 使用。

If you are looking for command line tools, you can install them using the Components tab of the Downloads preferences panel.

如果您正在寻找命令行工具,您可以使用“下载”首选项面板的“组件”选项卡安装它们。

回答by zebeurton

Yes you're right, now /Developer directory is embedded into XCode.app. So you have to make an alias to this new directory or change your path to this new folder.

是的,您说得对,现在 /Developer 目录已嵌入到 XCode.app 中。因此,您必须为此新目录创建别名或更改此新文件夹的路径。

回答by Reece

One easy way to get to it is to right click on an existing framework that you have imported in your project; then choose "open in finder". Then you can hit option + the up arrow key on your key board to traverse up to the developer folder (e.g if you want to peruse the contents of your simulator documents folder etc...) & make a short cut to it for direct navigation..

获得它的一种简单方法是右键单击您在项目中导入的现有框架;然后选择“在finder中打开”。然后你可以点击键盘上的选项 + 向上箭头键来遍历开发者文件夹(例如,如果你想仔细阅读模拟器文档文件夹的内容等......)并创建一个快捷方式以进行直接导航..

回答by Elena G. Washington

Switching directories worked for me:

切换目录对我有用:

sudo xcode-select -switch /