xcode “进程启动失败:无法获取进程2282的任务”如何解决?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/32881138/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 07:58:41  来源:igfitidea点击:

"process launch failed: failed to get the task for process 2282" How to solve this?

iosobjective-ciphonexcode

提问by Tejas Patel

I am trying to load my application in device but i got message like shown in image. enter image description here

我正在尝试在设备中加载我的应用程序,但收到如图所示的消息。 在此处输入图片说明

How can i solve it ?? I am using xCode 6.4

我该如何解决?我正在使用 xCode 6.4

回答by Imran

I am assuming you are running on device. Using a different provisioning profile solved this issue key point is to use a Developer profile rather than a Distribution profile.

我假设您正在设备上运行。使用不同的配置文件解决了这个问题的关键点是使用开发人员配置文件而不是分发配置文件。

回答by Skulas

In my case this dialog came along in an Objective-C project using Swift pods. We debug directly the Release configuration. If this is the case what fixed my problem was to turn off optimizations of 'Swift Compiler - Code Generation' for Release: Swift Compiler - Code Generation >Optimization Level

在我的例子中,这个对话框出现在一个使用 Swift pods 的 Objective-C 项目中。我们直接调试Release配置。如果是这种情况,解决我的问题是关闭“Swift Compiler - Code Generation”的优化以进行发布: Swift 编译器 - 代码生成 >优化级别