厚积薄发,滴水穿石

搬家到主站了:http://www.cnblogs.com/cokecoffe/
随笔 - 45, 文章 - 8, 评论 - 12, 引用 - 0
数据加载中……

Target failed to run: Remote exception encountered: 'Failed to get task for pid #

I got this error just recently when i tried to use the instrument to profile my iPad application on the device. And when i selected "Profile" from the menu, and instrument was opened. Then i selected "Allocations" or "Leaks", i just heard "Funk" and then nothing happened. So i checked out the Console and found out some errors about missing plug-ins for these selected functions. So bascially, it's because some plug-in in your Xcode application folder was missing or crrupt. So better remove Xcode completely through Command line "sudo /Developer/Library/uninstall-devtools --mode=all",then reinstall it. You should be good to go.
Then when i rerun my app with instrument i received another error which was the topic of this post. After searching a little bit. It's actually very easy to fix.

1.Make sure, the "Profile" scheme is using "debug" not "release" build configuration

Here is the way how to change it: In Xcode4, select "Product/Edit Scheme" from the top menu then click on the "Profile" button on the left panel. Under the "Info" tab you will see "Build configuration", make sure "Debug" is selected.

posted on 2011-11-16 17:23 Wangkeke 阅读(1188) 评论(0)  编辑 收藏 引用 所属分类: IOS


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   博问   Chat2DB   管理