Search code examples
macosios-simulatorios9xcode7osx-elcapitan

iOS Simulator NSPOSIXErrorDomain Code=2 after upgrading to OSX El Capitan


After I upgraded from Yosemite to El Capitan, my simulator can no longer connect to my local server. The same simulator has no problems connecting to my remote production server.

I'm sure my local server is running fine as Safari can connect to it properly using the same port.

Here's the error I'm getting in Xcode:

Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory" UserInfo={NSErrorFailingURLStringKey=http://localhost:9000/sites, NSErrorFailingURLKey=http://localhost:9000/site, _kCFStreamErrorCodeKey=2, _kCFStreamErrorDomainKey=1}

I'm running xcode 7.0.1 Simulator iOS 9.0


Solution

  • Problem was fixed after upgrading to 7.2.