When do app sources need to be included in test targets?

前端 未结 7 1516
别那么骄傲
别那么骄傲 2020-12-02 05:30

In a new project I have this simple test

#import 
#import \"ViewController.h\"

@interface ViewControllerTests : XCTestCase
@end

@imp         


        
相关标签:
7条回答
  • 2020-12-02 06:11

    On Xcode 6, I was able to fix this problem by checking "Allow testing Host Application APIs" in the test target > General > Testing.

    Xcode Screenshot

    0 讨论(0)
提交回复
热议问题