Failed to Attach to Process ID Xcode 解决办法

方法1.

go to the Product menu and find the Edit Scheme menu there.

While in Edit Scheme window, select the "Run" option on the left hand side of
the screen and then on the right hand side, change the debugger from LLDB to
GDB.

方法2.

Step1: ping

$ ping localhost

This should return something like

PING localhost (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.028 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.048 ms
...

If this works, this answer won‘t fix your problem, try something else.

If ping return something else for example: ping: cannot resolve
localhost: Unknown host
something is screwed up with
your /etc/hosts file, go to Step
2

Step2: Check /etc/hosts

Check that the top of your /etc/hosts file looks like
this

127.0.0.1       localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost

If it doesn‘t have these entries in the file, enter them at the top of the
file, flush the dns cache using $ dscacheutil
-flushcache
 and go back to Step 1, otherwise
continue to Step 3.

Step3: Correct File Format: It should be unix or LF *

$ file /etc/hosts

This should return: /etc/hosts: ASCII English text

If it returns something like /etc/hosts: ASCII English text, with
CR line terminators
then the file is in the wrong format and is likely
being ignored.

Change the file line endings to unix or LF using your favorite text
editor.

  • In Sublime Text 2 this can be done throught the view
    menue: View > Line Endings > Unix

Flush the dns cache ($ dscacheutil -flushcache) and go back
to step 1

转自http://stackoverflow.com/questions/11535844/failed-to-attach-to-process-id-xcode

Failed to Attach to Process ID Xcode 解决办法,布布扣,bubuko.com

时间: 2024-10-09 22:00:03

Failed to Attach to Process ID Xcode 解决办法的相关文章

error: failed to attach to process ID 0

重启Xcode可能会正确运行,或者用以下方法: 步骤1:Xcode目录Window->Organizer,将工程名文件删除. 步骤2:Xcode目录Xcode->Open Developer Tool->iOS Simulator,弹出模拟器后,菜单上"iOS模拟器"选项->还原内容和设置,退出模拟器. 步骤3:重启Xcode.

"flash download failed - Target dll has been cancelled"错误解决办法

在用mdk通过stlink烧写官方例程到stm32f429I discovery时,烧写了十来个程序都没问题,突然在烧写一个程序时, 弹出了"flash download failed - Target dll has been cancelled",然后后续的烧写都失败了. 原因可能是其中一个程序将stm32开发板设置成了休眠模式,导致后续的烧写都失败了. 从keil论坛帖子中 看到可以通过st-link utility来将flash全部擦除就能烧写了. 从http://www.st

Unlink of file 'xx' failed. Should I try again? (y/n) 解决办法

作者:鹿丸不会多项式  出处:http://www.cnblogs.com/hechao123   转载请先与我联系. Unlink of file 'xx' failed. Should I try again? (y/n) 原因:一般遇到这个错输入y/n都不能解决问题,出现这个问题的原因可能是其他程序正在操作git目录下面的文件,导致git无法关联该文件. 比如用dos命令窗或者git bash打开当前分支的文件,不关闭的情况下再切换到其他分支,等再切回来的时候就会报这个错,怎么确认(y)都

jps 报process information unavailable解决办法

4791 -- process information unavailable 解决办法: 进入tmp目录, cd /tmp 删除该目录下 名称为hsperfdata_{ username}的文件夹 然后jps,清净了.

pip安装出现Fatal error in launcher: Unable to create process using '"'的解决办法

python中使用pip安装模块时,出现:Fatal error in launcher: Unable to create process using '"' 原因:系统中可能有多处安装pip,且均加入到了环境变量中 解决办法: 1.查看pip命令的路径是否有重复:cmd命令:where pip,如下确实存在多个路径 2.拷贝环境变量path到txt中,去掉不需要的相关路径,保存,重新开个控制台,重新使用pip进行安装 多版本pip用法: 如果环境中确实需要存在多个pip,例如同时安装了pyt

xcode构建webdriverAgent时报错Messaging unqualified id的解决办法

在使用xcode构建webdriverAgent时,提示build failed,报错信息为:semantic issue:Messaging unqualified id,可以参考以下解决方案 xcode版本:10.2 ios版本:10.3 appium版本:1.7.2 打开终端进入webdriver的目录,我的目录如下 /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium

It is possible that this object was over-released, or is in the process of deallocation解决办法

使用wekwebview时,push后,再pop返回,报错了: Cannot form weak reference to instance (xxxx) of class xxxx. It is possible that this object was over-released, or is in the process of deallocation. 解决方案: 1. 不要在 dealloc 方法中,使用 weak self 2. A控制器(包含scrollView及其子类,并设置了其

Failed to create the java virtual machine解决办法

1,原因:JAVA虚拟机报错,计算机的内存不足所致,还有一种说法是你的eclipse版本和虚拟机不兼容. 2,解决方法:找到eclipse安装目录下的eclipse.ini配置文件,打开: -startup -vm D:\Java\jre6\bin\javaw plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.

windows 2012 IIS 部署 .net core HTTP Error 502.5 - Process Failure 错误解决办法

还是前天的那台服务器,.net fromwrok 环境装好了之后,开始部署Web系统,启动的时候提示 HTTP Error 502.5 - Process Failure : 根据以往的经验,这是没有安装core SDK引起的: 然后安装了对应的SDK文件,结果还这样: 尝试方法1:https://www.cnblogs.com/loui/p/7826073.html  [无效] 尝试方法2:https://www.jianshu.com/p/8a8396dabee6 [无效] 经过多方尝试之后