XCode7 UITesting - how to add main target classes to be available from UITestCase (Undefined symbols error)?
问题 I'm doing UI testing with XCode7 and need a way to reset my app to some initial state. I have a method to do so in one of my .m files that are part of the main target. How can I make classes from the main target to be available from within a UITestCase? I tried regular import, but get a linker error: #import <XCTest/XCTest.h> #import "CertificateManager.h" @interface UITests : XCTestCase @end -(void)testWelcomeScreen { //put the app into initial state [[CertificateManager sharedInstance]