I'm having issues unit testing code involving
isKindOfClass check. There are a lot of existing question on this topic and the answers recommend:
-ObjCis included as an "other linker flag". It is.
.mfiles from the project target are not added to the test target. They aren't.
To make sure there weren't odd circumstances, I created a fresh project. I:
-ObjCis present in both targets
XCTAssert([AppDelegate.makeFuture isKindOfClass:TOCFuture.class], @"")to the example test
Basically I have no idea why this shouldn't work. Even more oddly, if I go counter to existing answers and include
AppDelegate.m in the test target, the test starts to pass.
What is going on? Am I suppose to include the source files in the test target, or am I not supposed to?