xcode 运行iOS模拟器时出现伪终端设置错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/48128652/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Pseudo Terminal Setup Error when running iOS Simulator
提问by Tamás Sengel
I tried to execute my app in the iOS Simulator. The build succeeded, but I got an alert with an error message before running and the app did not execute:
我试图在 iOS 模拟器中执行我的应用程序。构建成功,但在运行之前我收到一条带有错误消息的警报,并且应用程序没有执行:
Pseudo Terminal Setup Error
ErrorCode: 1 Errno: 6
伪终端设置错误
ErrorCode: 1 Errno: 6
What is this and how can I fix this?
这是什么,我该如何解决?
回答by Tamás Sengel
Just restart Xcode and run your app again.
只需重新启动 Xcode 并再次运行您的应用程序。
A pseudo terminalis an emulated terminal which is controlled by a master application, in this case, Xcode. For some reason, it encountered an error while trying to run that emulated terminal.
甲伪终端是由主应用控制,在这种情况下,Xcode的仿真终端。出于某种原因,它在尝试运行该模拟终端时遇到错误。
A common problem that can cause this is that you tried to run an instance of an iOS application too quicklyafter stopping another instance.
可能导致此问题的一个常见问题是,您试图在停止另一个实例后过快地运行 iOS 应用程序的一个实例。
回答by Mo Iisa
How to resolve the error:
如何解决错误:
- Quit the simulator
- Restart Xcode - (Make sure that you have saved /committed any changes you have made to your code)
- 退出模拟器
- 重新启动 Xcode -(确保您已保存/提交对代码所做的任何更改)
回答by Erumaru
I can't post comment, that is why I wrote here. To those for who this issue repeats even after restarting Xcode, remember to kill process at all, don't just close the project.
我不能发表评论,这就是我在这里写的原因。对于那些即使在重新启动 Xcode 后仍会出现此问题的人,请记住完全终止进程,不要只是关闭项目。