error: failed to attach to process ID 0”

来源:互联网 发布:ios电影下载软件 编辑:程序博客网 时间:2024/05/19 02:25
1. clean all.
2. kill -9 xcode的PID( ps -A | grep code | grep psn可以拿到)
3. kill -9 模拟器PID(上面那个命令也能拿到)
4. 打开模拟器, 清除那个程序
5. 打开xcode, 在模拟器上run.