Frage

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?

War es hilfreich?

Lösung 2

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).

Andere Tipps

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.

As @EdwardHuynh pointed in comments unit testing in Xcode 5.1 does not works only for iphone simulator with iOS6.1. It works well for iOS7.1. For me it does not matter what version of iOS in unit tests so I accept that answer. If you know fix for iOS6.1 - post it here and I gladly accept your answer.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top