XCode:无法启动“APP_X_Y” - 'A'数据包返回错误:-1 [英] XCode: Could not launch "APP_X_Y" - 'A' packet returned an error: -1

查看:310
本文介绍了XCode:无法启动“APP_X_Y” - 'A'数据包返回错误:-1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想让我的应用程式在模拟器以及装置上再次运作。在我遇到这个错误之前,我经历了一个odyssee XCode签名错误,但是知道它似乎我真的卡住了。



错误: / strong>



当我尝试在设备上启动应用程序时,它会生成没有任何错误,但安装应用程序后,我得到错误消息:



无法启动APP_X_Y - A数据包返回错误:-1



很抱歉,我无法使用模拟器 - 被卡住在附加到APP_X_Y。您还可以通过此处查看模拟器问题


$ b

$ b

在不同的XCode错误后,我通过了以下的Stackoverflow问题,每个帮助我达到一个新的水平。


  1. xCode:无法获取进程的任务

  2. 配置文件错误(启动远程程序时出错:无法获取进程XXX的任务。)

  3. 代码签名错误:找不到配置文件

  4. 配置简档团队是未知

在最后一步中,我认为事情真的搞砸了:XCode不是能够找到供应配置文件了,这就是为什么我已经删除了我的项目文件中的供应配置文件字符串,像这里建议:代码错误:在删除过期的配置文件后找不到配置文件



知道我正在努力与数据包返回-1错误,我没有找到任何输入在这里。有没有人知道如何让这个再工作?

解决方案

如果你从头开始创建一个新项目,连接到模拟器?在这种情况下,我建议把现有的代码和设置移到一个新的项目。我不得不诉诸这至少一次,我可以记住,因为一些鱼腥的错误XCode项目文件。


I'm trying to get my App to work again on the simulator as well as on my device. Before I got this error, I went through an odyssee of XCode signing errors, but right know it seems like I'm really stuck.

The error:

When I try to launch the App on a device, it builds without any errors, but after installing the app I get the error message:

Could not launch "APP_X_Y" - 'A' packet returned an error: -1

Unfortunately I cannot use the Simulator either - it gets stuck at "Attaching to APP_X_Y". You can also take a look at the simulator problem over here - but there is no final solution out there.

What I've done so far:

After different XCode Errors I went through the following Stackoverflow questions, each helping me out with to get to the next level.

  1. xCode: failed to get the task for process
  2. Profile bug (Error launching remote program: failed to get the task for process XXX.)
  3. Code Sign error: Provisioning profile can't be found
  4. Provisioning Profile "Team" is "Unknown"

In the last step, however I think things got really screwed up: XCode wasn't able to find the provisioning profile anymore, that's why I've deleted my provisioning profile string in my project file, like it is recommended over here: Codesign error: Provisioning profile cannot be found after deleting expired profile

Know I'm struggling with the packet returned -1 error and I cannot find any input out here. Has anyone an idea how to get this to work again?

解决方案

If you create a new project from scratch, can this new project connect to the simulator? In that case I suggest just moving over the existing code and settings to a fresh project. I've had to resort to this at least once that I can remember because something fishy had gone wrong with the XCode project file.

这篇关于XCode:无法启动“APP_X_Y” - 'A'数据包返回错误:-1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆