Unit tests doesn't work

Hello!


I'm working on some console application for macOS 10.14. Project was created without unit tests so I tried to add it now.

I've add Unit Test Target from test explorer. There is no problems at all. When I run tests "cmd+U" it successfuly compiles and start application. After some time in "testing..." state it shows "test failed" and looks like that it doesn't depend on content of the test.


Also I've tried to run tests through command line with:

xcodebuild test -project macApp.xcodeproj -scheme MacApp-Release -destination 'platform=macOS,arch=x86_64'

it freezes on line:

Finished requesting crash reports. Continuing with testing.

The test body consists of only one XCTAssert, so I don’t think it takes so much time.


Are there any nuances in the UnitTestTarget setup?


I use Xcode 10.3, app language Swift & Objective-C.