繁体   English   中英

iOS XCode获取IDEPseudoTerminalDomain错误1

[英]iOS XCode getting IDEPseudoTerminalDomain error 1

我正在尝试使用XCode为iOS构建应用程序。 该应用程序在iPhone模拟器上运行正常但在运行之前抛出错误“IDEPseudoTerminalDomain error 1”。 不知道为什么会造成这种情况。

如果我尝试在iPad模拟器上运行所有,那么它根本不打开模拟器。

The operation couldn’t be completed. (IDEPseudoTerminalDomain error 1.)

请问你能告诉我为什么会出现这个错误以及如何避免错误。

提前致谢。

尝试通过这样做增加pseudo terminals的最大数量:

sudo sysctl -w kern.tty.ptmx_max=999

要使更改永久性超出当前终端会话,请执行以下操作:

sudo touch /etc/sysctl.conf
sudo chown root:wheel /etc/sysctl.conf
sudo chmod 644 /etc/sysctl.conf
echo "kern.tty.ptmx_max=999" | sudo tee -a /etc/sysctl.conf

积分可通过https://www.pgs-soft.com/ios-ui-testing-and-why-it-does-not-always-work-aka-pushing-the-limits-of-the-xctest转到bartoszj -framework /

我重置iOS模拟器(“iOS模拟器”菜单>“重置内容和设置...”),然后重新启动Xcode。 这两个组合为我解决了这个问题。

我正在使用Xcode 6.0 beta 4。

重置iphone模拟器然后退出模拟器然后再次启动它或XCode菜单 - >清除缓存解决了你的问题。

如果您遵循以下指导,我想添加一件小事: https//www.pgs-soft.com/ios-ui-testing-and-why-it-does-not-always-work -aka-the-the-the-xctest-framework /哪个BTW非常出色,他们认为这一点(提示,暗示Apple!)这是一个有疑问的漏洞,但是现在有效的解决方案。

您不必创建多个测试目标,每个目标在160个测试下运行。 我的建议是让模拟器在一个单独的PID上运行。 它很简单

`set +e 
 killall "Simulator" 
 set -e
 xcodebuild test-without-building -workspace YourComapny.xcworkspace -scheme YourCompanyApp -destination 'platform=iOS Simulator,name=iPhone 7,OS=latest' -only-testing:Test/testApp0`

`set +e 
 killall "Simulator" 
 set -e
 xcodebuild test-without-building -workspace YourComapny.xcworkspace -scheme YourCompanyApp -destination 'platform=iOS Simulator,name=iPhone 7,OS=latest' -only-testing:Test/testApp1`

等等。 每次新的test-without-building的SIM卡被杀死将强制一个新的PID,你可以避免用复制的测试目标污染你的测试架构。

我也遇到了同样的问题。 退出Xcode和Simulator后,重启几次,仍然无法正常工作。 最后,我通过以下两个步骤解决了这个问题:

1. 关闭电源 (在保存工作文件之前调高Mac音量,关闭或重启Mac); 2.按下Mac电源开关后,同时按“选项+命令+ P + R” ,然后您将听到系统发出声音 - 这意味着系统正在安全地清除缓存,您可以在听到两三个后打开手指声音。 系统将正常启动。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM