I try to test my project, and this is my test file
#import <XCTest/XCTest.h>
#import "SWLoginViewController.h"
@interface SWLoginViewControllerTest : XCTestCase
@property (strong, nonatomic) SWLoginViewController *loginVC;
@end
@implementation SWLoginViewControllerTest
- (void)setUp {
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
_loginVC = [[SWLoginViewController alloc] init];
}
- (void)tearDown {
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}
- (void)testObject {
XCTAssertNotNil(_loginVC, @"The loginVC can not be nil");
}
When I run my testing, I get an error saysTencentOpenAPI/TencentOAuth.h file not found
. This is a third party frame work.
I try to drag this frame to Link Binary With Libraries in Build Phases of the test target and run again, but it didn't work either.
So I wander how to solve this problem. Thanks.
Aucun commentaire:
Enregistrer un commentaire