xcode 仪器中的时间分析器不起作用
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/49744280/
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
Time profiler in instruments is not working
提问by Carusd Ray
I recently update my Xcode to version 9.3, so is instruments. After that, time profiler won't work anymore, it usually works fine before.
我最近将我的 Xcode 更新到了 9.3 版,仪器也是如此。在那之后,时间分析器将不再工作,它之前通常可以正常工作。
I tried to run it via Xcode, and I tried to run it manually. Doesn't work. The life cycle row stuck in initializing, and I got a bunch of warnings complain about the data volume is too high for a recording mode of "immediate" and some data had to be dropped to move forward.
我尝试通过 Xcode 运行它,并尝试手动运行它。不起作用。生命周期行卡在初始化中,我收到一堆警告,抱怨数据量对于“立即”记录模式来说太高,不得不丢弃一些数据才能继续前进。
Then I switch to delay mode, still got nothing. Then I create a simple new project, which should have "little data volume", still got nothing.
然后我切换到延迟模式,仍然一无所获。然后我创建了一个简单的新项目,它应该是“数据量很小”,但仍然没有任何结果。
I checked help, I googled, seems like no one has encountered this before. Does anyone have any clue about this?
我查了帮助,我用谷歌搜索,似乎以前没有人遇到过这种情况。有没有人对此有任何线索?
采纳答案by suxinde2009
I was hitting the same issue for a week.
我遇到了同样的问题一个星期。
Since today, I change the Xcode Version back to Xcode 9.2
- and the problem was resolved.
从今天起,我将 Xcode 版本改回Xcode 9.2
- 问题解决了。
It seems like this is a bug of Xcode 9.3
, I just filed an issue to Apple yesterday. No reply has been received.
这似乎是一个错误Xcode 9.3
,我昨天刚刚向 Apple 提交了一个问题。没有收到任何答复。
回答by Marmoy
I had two versions of Xcode installed, and was experiencing this when using the Instruments associated with the oldest version of Xcode (9.4.1).
我安装了两个版本的 Xcode,并且在使用与最旧版本的 Xcode (9.4.1) 相关联的仪器时遇到了这个问题。
I solved the issue by using the Instruments associated with the newest version of Xcode I had installed (10.0)
我通过使用与我安装的最新版本 Xcode (10.0) 相关联的 Instruments 解决了这个问题