In a new project I have this simple test
#import
#import \"ViewController.h\"
@interface ViewControllerTests : XCTestCase
@end
@imp
When you create a Unit Testing Bundle(Unit Testing target) for testing application you have two options
Allow testing Host Application APIsGeneral -> Host Application -> >check< Allow testing Host Application APIs
Target Membership[About]When you write a test and no one option was not enabled you can get
Undefined symbol: nominal type descriptor for
Undefined symbol: type metadata accessor for