仪器 - 目标太早终止而无法收集数据

发布于 2024-07-13 16:36:57 字数 226 浏览 8 评论 0原文

我使用 iPhone 作为开发设备。 每当我使用 Instruments 在 iPhone 上运行应用程序(Instruments -> 启动可执行文件 -> 我的应用程序)时,该应用程序都会启动,但我收到 Instruments 主题中提到的错误。

我尝试从 xcode 中删除该设备并再次将其添加为开发设备,但仍然遇到相同的错误。 有人可以告诉我如何解决这个问题吗?

谢谢。

I am using my iPhone as a development device. Whenever I run an application on the iPhone with Instruments (Instruments->Launch Executable->my app), the app is launched but I get the error mentioned in the subject in Instruments.

I have tried removing the device from xcode and adding it again as a development device but I still get the same error. Can someone please tell me how to solve this.

Thanks.

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

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

发布评论

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

评论(4

小姐丶请自重 2024-07-20 16:36:57

执行了新的证书配置文件例程并将捆绑包标识符更改为 myAppId.somethingForTheStar.${PRODUCT_NAME:identifier}

另外,如果您在 TextEdit 中打开 mobileprovision 并搜索

<key>get-task-allow</key>

(如果密钥值为 ) true,确保在您的 Entitlements.plist 文件中选中该选项(尽管 Apple 开发者门户网站表示应该取消选中该选项 - 理想情况下应该如此,如果您的 mobileprovision 文件需要选中它,请保持选中状态)

奇怪,我必须使用 Entitlements.plist,并在调试配置文件中选中“get-task-allow”,并在分发配置文件中取消选中“get-task-allow”,以便各个配置文件正常工作!

希望对某人有帮助。

Did a fresh certificate-provisioning profile routine and changed the bundle identifier to read myAppId.somethingForTheStar.${PRODUCT_NAME:identifier}

Also, if you open the mobileprovision in TextEdit and search for

<key>get-task-allow</key>

if the value for the key is true, make sure the option is checked in your Entitlements.plist file (though Apple developer portal says it should be unchecked - which it should ideally be, if your mobileprovision file wants it checked, keep it checked)

Strange, I had to use an Entitlements.plist with the "get-task-allow" checked for Debug profile and unchecked for Distribution profile for the respective profiles to work!

Hope that helps someone.

热血少△年 2024-07-20 16:36:57

正常情况下会崩溃吗? 或者只使用仪器?

我在乐器和应用程序安装方面遇到了很多奇怪的问题,只有完全恢复 iPhone/iPod Touch 才能解决这些问题。

Does it crash normally? or only using Instruments?

I've had lots of oddness with instruments and app installation that was only fixed by a complete restore of the iPhone/iPod Touch.

眉目亦如画i 2024-07-20 16:36:57

我让它只能与我的开发配置文件一起使用,这不是我的分发配置文件。

我还确保我在项目和目标中有相同的配置文件,然后转向
Entitlements.plist 中的 get-task-allow

有时仍然不起作用,然后我重新启动 xcode 拔出/插入我的 iphone,清理目标并从 Xcode 运行仪器通过“Start with Performance Tool

这是 XCode 3.1 / SDK 3.0 的方式。
希望 SDK 3.1(我现在正在下载)可以减轻这个痛苦。

哦,是的,我的应用程序有时会在“CPU 采样器”期间崩溃,我相信这与仪器有关。

I got it to work only with my development provisioning profile which is not my distribution profile.

I also made sure i have the same provisioning profile in project and target and turned
on get-task-allow in Entitlements.plist

It sometimes still doesn't work and then i restart xcode unplug/plugin my iphone, clean the target and run instruments from Xcode via 'Start with Performance Tool'

This is by the way with XCode 3.1 / SDK 3.0.
Hope this gets less painful with SDK 3.1 (which i'm downloading now).

Oh and yeah my app crashes sometimes during 'CPU Sampler' which i believe has to do with Instruments.

别念他 2024-07-20 16:36:57

确保您正在编译为调试而不是发布

还要确保您正在为项目和目标使用开发配置文件

make sure you are compiling as debug and not release

also make sure you are using development profile for both project and target

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