Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compile errors don't show up when using XCTest with swift

it doesn't seem like anyone has had this issue before but I'm using Xcode 7.3.1 and started adding some UI Test Cases with swift. When I use swift there are no compile errors or warnings that show up. So when I do something wrong it just says "Build Failed" but doesn't say why. Nothing shows up anywhere.

Yet when I make the tests in objective C it works just fine with the compile errors and warnings and NSLocalizedString works too...

Does anyone know how to make Xcode show the compile errors and warnings on tests that use swift?

like image 764
Chirone Avatar asked Sep 06 '25 09:09

Chirone


1 Answers

I was facing the same issue. What fixed the problem on my side was to make sure that my Schema included "Analize" or "Test" for the UI Test Target. Like so:

enter image description here

enter image description here


Only then warnings and errors messages started popping up in my UI test classes:

enter image description here

enter image description here

like image 85
backslash-f Avatar answered Sep 09 '25 05:09

backslash-f