在 Xcode 4.1 Build 4B110 下通过配置文件启动 Instruments 时出现错误

发布于 2024-11-25 12:39:03 字数 825 浏览 3 评论 0原文

重要更新

这个奇怪的错误在 Xcode 4.2 中得到了修复(至少对我来说)!


我在 Mac OS X Lion 下使用 Xcode 4.1 Build 4B110 并通过 Xcode 运行 Instruments 时遇到严重问题。问题是,如果我通过 Xcode 启动 Instrument,它会部分冻结。因此,如果我在 Xcode 4.1 中启动一个项目并打开“Profile”,则会出现 Instruments UI。计时器开始运行,但仪器应用程序不跟踪任何内容,更严重的问题是:

程序似乎正在运行,但对我所做的任何操作没有反应。所以我无法点击任何按钮等。什么也没有发生。计时器仍在运行,但我无能为力。我也无法再关闭窗口/应用程序。所以我必须强制停止 Instruments 应用程序。

但是,如果我直接通过 Developer/Applications/Instruments.app 启动 Instruments 应用程序,则一切正常。当然,该应用程序不会跟踪任何内容,但我可以单击按钮以及那里可能发生的任何事情。

那么有人知道这个问题吗?

有人知道如何解决这个奇怪的问题吗?

我还删除了具有相应卸载脚本文件的开发人员文件夹,并重新安装了 Xcode 4.1。但问题仍然存在。

有人可以给我提示、技巧等吗?

真的会很棒!

更新

所以,还有更奇怪的事情:

Profile 不知何故适用于 iOS 3.0 版本的应用程序,但在短暂休息后就不再起作用了。所以,我不知道这个错误在哪里。我猜这与目标应用程序 iOS 版本有关。

谢谢,安德烈亚斯

Important Update

The strange bug is fixed (at least for me) in Xcode 4.2!


I've a serious problem with Xcode 4.1 Build 4B110 under Mac OS X Lion and running Instruments via Xcode. The problem is that Instrument freezes partly if I start it via Xcode. So if I start a project in Xcode 4.1 and open "Profile" the Instruments UI appears. The timer starts running, but the instruments app doesn't track anything and the more serious problem:

The program seems to be running but does not react to any actions I make. So I can not click on any buttons etc. Nothing happens. The timer is still running, but I can not do anything. I also can not close the window/app anymore. So I have to force stop the Instruments app.

But if I start the Instruments app directly via Developer/Applications/Instruments.app everything is ok. Of course, the app doesn't track anything, but I can click on the buttons and anything possible there.

So does anyone know about this problem?

Does anybody know how to fix this weird problem?

I've also deleted the developers folder with the corresponding deinstall-script file and reinstalled Xcode 4.1. But still the problem persists.

Can anybody give me a hint, tip, etc.?

Would be really great!

Update

So, further weird stuff:

Profile somehow worked for iOS 3.0 version apps, but after making a short break it didn't work again. So, I don't know where this bug is located. I guess it's about the target app iOS version.

Thanks, Andreas

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

滥情哥ㄟ 2024-12-02 12:39:03

引用你对此的评论,andi1984,这样就没有人会错过这个“大”答案,对于任何人(比如我)来说,它是一个救星。这对我来说非常有用!

如果我打开 Xcode,请选择“配置文件”并选择一种仪器(让我们
说泄漏)新的仪器窗口打开。然后我需要返回
Xcode(当 Instrument.app 窗口仍然在后台打开时!)和
必须使用command + tab来选择前面的Xcode
再次使用 Instrument.app。然后仪器应用程序向我显示跟踪的
数据。确实很奇怪的问题,但现在可以了。 ;-)

Quoting your comment on this, andi1984, so that no one misses this "big" answer for anyone (like me) for whom it is a lifesaver. This worked great for me!

If I'm opening Xcode, choose Profile and choose one instrument (let's
say Leaks) the new Instrument window opens. Then I need to go back to
Xcode (while Instrument.app window is still open in background!) and
have to use command + tab to choose out of Xcode in front the
Instrument.app again. Then the Instrument app shows me the tracked
data. Really weird problem, but now it works. ;-)

眼前雾蒙蒙 2024-12-02 12:39:03

Epaga 的解决方案有时有效且有效。有时不会。

因此,我建议大家复制以下开放雷达,以便 Apple 优先考虑此问题:

http://openradar.appspot.com /9855452

Epaga's solution sometimes works & sometimes doesn't.

Therefore I suggest everyone duplicates the following open radar so that Apple gives this issue some priority:

http://openradar.appspot.com/9855452

余生共白头 2024-12-02 12:39:03

我遇到了仪器锁定的问题,并且上面的 cmd-tab 技巧在我这样做之前不起作用,以至于出现“仪器正在尝试访问您的计算机”对话框,要求我输入密码。输入密码后我就可以访问仪器了。我怀疑问题是密码对话框隐藏在 Xcode 窗口中。在这种情况下,仪器被冻结,因为它打开了模式对话框。

因此:

  1. 运行 Instruments
  2. Cmd Tab 到 Xcode 来覆盖仪器。循环并隐藏消息,直到找到密码对话框。关闭 Xcode

这可能是一次性的事情...既然我授予了 Instruments 访问权限,它可能不再需要密码。

I had the problem of instruments locking up and the above cmd-tab trick didn't work until I did it such that the dialog "Instruments is trying to access your computer" appeared asking for my password. After I entered the password then I could get to instruments. I suspect the problem is the password dialog is hidden in the Xcode windows. In this case Instruments is frozen because it has the modal dialog open.

So:

  1. Run Instruments
  2. Cmd Tab to Xcode covering the instruments. Cycle and hide messages until password dialog is found. Close Xcode

This may be a one time thing... now that I gave Instruments access it may not need the password again.

软的没边 2024-12-02 12:39:03

我发现,如果我同时打开两个 Instruments 窗口,当 Instruments 锁定在一个窗口中时,将另一个窗口置于前台似乎会使 Instruments 脱离其中。如果您可以将焦点放在与锁定的仪器窗口不同的仪器窗口上,则似乎可以恢复仪器。

我发现两窗口方法始终有效,而 Xcode 配置文件方法仅有时有效。

编辑:

在多尝试了两窗口方法之后,此方法也仅有时有效。

I've found that if I leave two Instruments windows open at the same time, when Instruments locks up in one window, bringing the other window into the foreground seems to snap Instruments out of it. It seems to bring Instruments back if you can get the focus on a different Instruments window than the one that's locked.

I've found the two-window-method works all the time while the Xcode-profile-method only works sometimes.

Edit:

After trying the two-window-method a bit more, this method also only works sometimes.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文