process Launch Failed:failed to Get the Task for Process XXXX(解决方案)

来源:互联网 发布:我的淘宝怎么登陆 编辑:程序博客网 时间:2024/06/06 05:06

failed to get the task for process 1285

这一次碰到的问题是这样的:模拟器上运行正常。我在iPhone 6上运行,程序编译正常,但是跑起来之后,大概一两秒的时间,就闪退(代码是没有问题的)。这个时候,Xcode7.1弹出这样的提示:

这里写图片描述

Could not launch “XXXXXXXX”process launch failed: failed to get the task for process 1378

错误分析

Build Settings里的Code Signing配置,如下图所示:
这里写图片描述

iPhone Distribution:是用来发布的证书,显然这是不对的,我们是要真机调试。

解决方案

解决方法很简单,将Code Signing换成用开发证书 iPhone Developer:即可。

这里写图片描述

0 0
原创粉丝点击