ios - 'ProductModuleName-Swift.h' file not found -
i want use protocol method of swift class objective-c class have import 'productmodulename-swift.h' , declare protocol in interface shows error: 'productmodulename-swift.h' file not found.
but when import test.m file fine when import test.h shows error.
example:
test.h
#import "myproject-swift.h" @interface test : uiviewcontroller<myswiftdelegate>
or there way use protocol method of swift in obj-c class
thanks in advance.
go targets -> build settings -> swift compiler - code generation , make sure "objective-c bridging header" points correct place , "objective-c generated interface header name" correct file. header name unit tests defaulted module-nametest-swift.h needed remove "test" title.
Comments
Post a Comment