仪器 - 目标太早终止而无法收集数据
我使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
执行了新的证书配置文件例程并将捆绑包标识符更改为 myAppId.somethingForTheStar.${PRODUCT_NAME:identifier}
另外,如果您在 TextEdit 中打开 mobileprovision 并搜索
(如果密钥值为 ) 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
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.
正常情况下会崩溃吗? 或者只使用仪器?
我在乐器和应用程序安装方面遇到了很多奇怪的问题,只有完全恢复 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.
我让它只能与我的开发配置文件一起使用,这不是我的分发配置文件。
我还确保我在项目和目标中有相同的配置文件,然后转向
在
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
inEntitlements.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.
确保您正在编译为调试而不是发布
还要确保您正在为项目和目标使用开发配置文件
make sure you are compiling as debug and not release
also make sure you are using development profile for both project and target