1、error?"ProjectName-Swift.h" file not found
在單測(cè)的target中,Header Search Paths中添加
"$(TARGET_TEMP_DIR)/../$(PROJECT_NAME).build/DerivedSources"
2、bridging header warning
Implicit import of bridging header 'ProjectName-Bridging-Header.h' via module 'ProjectName' is deprecated and will be removed in a later version of Swift
在ProjectNameTests-Bridging-Header.h中引入#import "ProjectName-Bridging-Header.h"即可
3、error?Cannot find 'ClassName' in scope
當(dāng)前測(cè)試用例中使用,@testable ?import ?ProjectName