Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Error spawning child process: No such file or directory" Xcode

Xcode 5.1 shows that unit test framework I use is deprecated. After migrating to XCTest from SenTestingKit. I get this message in console:

Error spawning child process: No such file or directory

I tried to clean Cmd + K but it does not help. Xcode restart does not help too.

Anyone encountered such problem?

like image 814
Ossir Avatar asked Mar 19 '14 08:03

Ossir


2 Answers

I got that error too and I solved it by testing on another simulator. I replaced -destination "platform=iOS Simulator,name=iPhone" with -destination "platform=iOS Simulator,name=iPhone Retina (4-inch)" in my xcodebuild arguments and it worked.

like image 100
0xced Avatar answered Sep 21 '22 02:09

0xced


XCTest was not supported with iOS 6.x, only iOS7, so any converted test bundles can no longer be run against 6.x simulators. (It is trying to execute the "xctest" command inside the iPhoneSimulator6.X.sdk/Developer/usr/bin/ directory, and can't find it, because it's only in the 7.0 simulator SDKs -- therefore the "No such file or directory" error message, or "Did not find an executable file at the path" in Xcode 5.0).

like image 23
Carl Lindberg Avatar answered Sep 19 '22 02:09

Carl Lindberg