1
我正試圖編寫Objective-c中編寫的類的測試並獲得用Swift編寫的類注入的問題。編寫XCTest編寫的Swift類的測試Objective c
例如,在測試文件:
SomeSwiftClass *swiftVar = [SomeSwiftClass new];
SomeObjectiveCClass *objVar = [[SomeObjectiveCClass alloc] initWithSwiftClass:swiftVar]
但是編譯器不能識別雨燕類,並且它不支持導入「目標,Swift.h」太..
哪有我在同一個TestFile上爲Objective C和Swift編寫測試?