麻烦在iPad上运行仪器 [英] Trouble running Instruments on iPad

查看:73
本文介绍了麻烦在iPad上运行仪器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用设备本身上的Instruments来分析我的应用程序。具体来说,我正在尝试进行时间分析。

I'm trying to profile my application using Instruments on the device itself. Specifically, I'm trying to do time profiling.

不幸的是,我无法让它工作。情况如下:

Unfortunately, I just can't get it to work. Here's the situation:

1)如果我使用模拟器上的开发人员资料签署了使用应用程序签名的工具,它就可以正常工作。

1) If I run instruments with the app signed using the developer profile on the simulator, it works.

2)如果我使用在模拟器上使用分发配置文件签名的应用程序运行仪器,它可以工作。

2) If I run instruments with the app signed using the distribution profile on the simulator, it works.

3)如果我使用应用程序运行仪器使用设备上的分发配置文件进行签名(这是分析的默认情况,因为该方案设置为使用发布版本),然后Xcode抱怨没有有效的配置文件。这似乎是合理的。

3) If I run instruments with the app signed using the distribution profile on the device (which is the default case for profiling since the scheme is set to use the release build) then Xcode complains about that there's no valid provisioning profile. That seems reasonable.

4)如果我使用设备上的开发人员资料签署了使用应用程序签名的工具,那么Xcode会传输应用程序,但随后声明它已经完成 马上跑。该应用程序未运行,并且在大多数情况下没有错误消息。

4) If I run instruments with the app signed using the developer profile on the device, then Xcode transfers the app, but then states that it's "Finished running" immediately. The app isn't run, and in most cases there's no error message.

有时候,有时,组织者会发出一条消息,指出该设备无法识别主机 - E800001C。

Sometimes, just sometimes, there's a message from the Organiser stating that device does not recognise host - E800001C.

5)使用开发者资料直接运行应用程序工作正常 - 我可以按预期进行调试。

5) Running the app directly using the developer profile works fine - I can debug as expected.

总结 - 我无法通过使用调试版本的仪器在设备上运行应用程序 - 它在有机会启动之前停止。没有错误消息 - 在调试控制台中根本没有。

Summary - I can't run an app on a device through Instruments using a debug build - it stops before it's had a chance to start. There are no error messages - nothing at all in the debug console.

帮助?

谢谢,

Tim

推荐答案

我已经解决了这个问题。我没有想过检查组织者内部的控制台。它说:

I've solved this. It hadn't occurred to me to check the console inside the organizer. It said:

:权利'keychain-access-groups'具有供应资料不允许的价值

: entitlement 'keychain-access-groups' has value not permitted by a provisioning profile

经过一段谷歌搜索,我发现从设备中删除应用程序将解决我的问题。现在我可以介绍一下。

After a bit of Googling I discovered that deleting the app from the device would solve my issue. Now I can profile.

当你知道怎么做时很容易。希望能帮助别人。

So easy when you know how. Hope that helps someone else.

Tim

这篇关于麻烦在iPad上运行仪器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆