尝试在设备上运行测试时出现奇怪的错误(Weird error when trying to run a test on device)

编程入门 行业动态 更新时间:2024-10-19 13:27:41
尝试在设备上运行测试时出现奇怪的错误(Weird error when trying to run a test on device)

差不多一个星期,当我试图在我的设备上运行应用程序时,我遇到了这个奇怪的错误。 错误是:

error launching remote program: failed to get the task for process 10492

重要的是要说我在Xcode上收到这条消息,应用程序就在这个问题上,但是我可以通过点击应用程序图标来运行它,它可以正常使用最新的更新。

什么似乎是问题?

非常感谢!

For almost a week i'm getting this weird error when i'm trying to run the app on my idevice. the error is that:

error launching remote program: failed to get the task for process 10492

It's important to say that I get this message on Xcode, the app quites on the idevice, but right after I can run it by clicking on the app icon and it works just fine with the latest updates.

what seems to be the problem?

Thanks alot!

最满意答案

问题是您已在发布模式下设置构建配置,并通过Xcode在设备中安装应用程序。 如果要调试应用程序,则应转到“编辑方案”,然后选择“调试”模式。 此外,请确保您拥有开发人员配置文件,并且您正在使用该开发人员配置文件构建。 然后,当您尝试通过Xcode安装应用程序时,您将看到应用程序已安装。 希望有所帮助!

The problem is that you have set the build configuration in Release mode, and installing the application in device through Xcode. If you want to debug the app, then you should go to Edit scheme, and choose Debug mode. Also, make sure, you have a developer profile, and that you are building with that developer profile. Then, when you try to install the app through Xcode, you will see the app getting installed. Hope that helps!

更多推荐

本文发布于:2023-04-28 01:07:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1329707.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:奇怪   错误   测试   设备   Weird

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!