Here is my code:
if let runningTests = NSClassFromString("XCTestCase") {
return false
}
Compiler Warning:
Persistent runTests are assumed to be of the AnyClass type, which may be unexpected.
What do I need to do to remove this warning without changing my code to check if! = Nil with the result of NSClassFromString?
source
share