Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS XCode getting IDEPseudoTerminalDomain error 1

I am trying build a app for iOS using XCode. The app works fine on iPhone simulator but before running it throws error "IDEPseudoTerminalDomain error 1". Don't know why it is causing this.

If I try to run all on iPad simulator then it doesn't open simulator at all.

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

Please can you tell me why this error is coming and how to avoid it.

Thanks in advance.

like image 862
Vikas Khengare Avatar asked Jul 25 '14 01:07

Vikas Khengare


3 Answers

Try increasing the max number of pseudo terminals by doing this:

sudo sysctl -w kern.tty.ptmx_max=999

To make the change permanent beyond the current terminal session, do this:

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

Credits go to bartoszj at https://www.pgs-soft.com/ios-ui-testing-and-why-it-does-not-always-work-a-k-a-pushing-the-limits-of-the-xctest-framework/

like image 185
Victor Bogdan Avatar answered Nov 15 '22 19:11

Victor Bogdan


I reset the iOS Simulator ("iOS Simulator" menu > "Reset Content and Settings..."), then I restarted Xcode. These two combined resolved this issue for me.

I am using Xcode 6.0 beta 4.

like image 23
justinpawela Avatar answered Nov 15 '22 21:11

justinpawela


reset the iphone simulator and then quit the simulator then started it again or XCode menu->Clear cache solved your problem.

like image 1
nivritgupta Avatar answered Nov 15 '22 19:11

nivritgupta