Xcode 9:无法附加到pid [英] Xcode 9: Could not attach to pid

查看:119
本文介绍了Xcode 9:无法附加到pid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

(最近)我经常遇到iOS应用程序开发工具的主要版本Xcode 9-beta的问题.

I've been facing an issue (frequently) with the recent major release of the iOS application development tool - Xcode 9-beta.

在模拟器(iOS 11)中运行/调试应用程序时,经常向我显示以下错误.

It's showing me the following error frequently while running/debugging app in Simulator (iOS 11).

无法附加到pid:"2370"
确保< 项目标题>尚未运行,并且< 系统用户名>有权对其进行调试.

Could not attach to pid : "2370"
Ensure <project title> is not already running, and <system username> has permission to debug it.

以下是同一问题的快照:

Here is a snapshot for the same issue:

这个问题经常困扰,什么是永久解决方案?

What would be permanent solution of this issue, as it's disturbing frequently?

推荐答案

如果问题在 OS Mojave 上并且您正在尝试像我一样在上进行测试 >较旧的Xcode版本(低于10.0),请确保在您的方案中,选择测试"时,调试可执行文件"已禁用

If issue is on OS Mojave and you are trying, like me to run tests on older Xcode version (lower than 10.0), make sure that in your scheme, when you select Test, Debug executable is disabled

从那时起您将无法调试测试

You won't be able to debug tests from this point

这篇关于Xcode 9:无法附加到pid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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