问题描述
我正在开发自定义键盘,但是它非常慢,有时会崩溃.
I'm developing a custom keyboard but it's very slow and sometimes it's crashing.
因为我不确定它来自哪里,所以我想使用仪器 Time Profiler .但是,当我选择MyIphone>键盘扩展(目标)时,我得到:
Because I'm not sure where it comes from, I'd like to Time Profiler with Instruments. But when I select MyIphone > Keyboard Extension (target), I get:
或
请采取适当的措施以启动"x.x.x.Keyboard".
Please take appropriate action to initiate the launch of 'x.x.x.Keyboard.'
是否可以将带有工具扩展程序的Instruments一起使用?如果是,我应该如何进行?
Is it even possible to use Instruments with an app extension? If yes, how should I proceed?
推荐答案
我以前无法使用乐器来分析键盘,但是我的方法可能会对您有所帮助.
I can't use Instruments to analyze my keyboard before, however my method might be helpful to you.
- 在iPhone上运行项目.
- 对左列进行Xcode编码,第七个按钮显示调试导航器",然后选择内存"列.
- 在右侧的内存报告"中,选择右上角的仪器中的配置文件".仪器将打开.
我使用此方法进入仪器"工具来分析内存.我注意到,工具"工具上显示的软件名称后跟一个数字,例如com.xxx.xxx.keyboard (4489)
.
I used this method to enter the Instruments tool to analyze the memory. I noticed that the software name displayed on the Instruments tool was followed by a number, like com.xxx.xxx.keyboard (4489)
.
直接从Xcode->Product->Profile
访问仪器无法正常工作.这可能是关键.
Accessing Instruments directly from Xcode->Product->Profile
does not work properly. This may be the key.
希望这对您有所帮助.
这篇关于在具有ios键盘扩展名的设备上运行Xcode Instruments的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!