Reputation: 822
I get the following error in Xcode 9 and Simulators with iOS 11. It's very weird as all the test cases are running fine in Xcode 9 with simulator iOS 9. It seems to be some kind of issue with Xcode 9 and Simulator iOS 11.
Assertion failure in void _XCTestMain(XCTestConfiguration *)(), /Library/Caches/com.apple.xbs/Sources/XCTest_Sim/XCTest-13201/Sources/XCTestFramework/Harness/XCTestMain.m:62 2017-11-06 16:26:51.080851-0600 xctest
[17644:81518] Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'No test bundle found at file:///Users/xxxx/Code/iOS-SDK/ContentSDK/build/Debug/ContentSDKTests.xctest/
Upvotes: 0
Views: 742
Reputation: 71
For me the problem was in the lowercase letter in 'build' directory name. I used parameter '-derivedDataPath build' for xcodebuild. Try to compare the real build directory name on the filesystem with the name in the error message.
Upvotes: 3
Reputation: 822
It's a wired issue. I have created a simulator from Xcode -> window-< Devices & simulators and the unit test started working fine.
Upvotes: 1