仪器在 Xcode 4.3 中去了哪里?

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

Where did Instruments go in Xcode 4.3?

xcodeinstrumentsxcode4.3

提问by Krumelur

I have just updated from 4.2 to Xcode 4.3 and "Instruments" is no longer there.

我刚刚从 4.2 更新到 Xcode 4.3 并且“仪器”不再存在。

I tried to run it from Launchpad but was informed that this is not possible because Instruments is in the trash bin.

我尝试从 Launchpad 运行它,但被告知这是不可能的,因为 Instruments 位于垃圾箱中。

Xcode 4.3 uninstalled 4.2 but it seems it did not bother installing a new version of Instruments.

Xcode 4.3 卸载了 4.2 但它似乎并没有打扰安装新版本的 Instruments。

回答by sch

You can launch Instruments from within Xcode. It is no longer in the /Developerfolder but in /Applications/Xcode.app/Contents/Developer.

您可以从 Xcode 中启动 Instruments。它不再在/Developer文件夹中,而是在/Applications/Xcode.app/Contents/Developer 中

From the menu bar, choose Xcode > Open Developer Tool > Instruments.

从菜单栏中,选择Xcode > Open Developer Tool > Instruments

enter image description here

在此处输入图片说明

回答by Kaz Yoshikawa

If your goal to profile your code with Instruments after all, choose menu "profile" from your project then Xcode launches Instruments as you probabbly expect.

毕竟,如果您的目标是使用 Instruments 分析您的代码,请从您的项目中选择菜单“配置文件”,然后 Xcode 会按照您的预期启动 Instruments。

Xcode Project>ProfileInstruments

Xcode 项目>配置文件Instruments