I'm working on a project that contains Swift and Objective_C code, it works without any problem until i was trying to import a ".h" class in my "Bridging-Header" file:
however when i have imported an other class in Bridging Header that works without problem!
There is 3 ways to import objective c file in Swift project.
#import "FileName.h"
#import <FolderName/FileName.h>
@import PackageName;
like @import Alamofire;
Try importing your class like
#import "classname.h" if this fails try
#import `<classname/classname.h>`
Remember to clean and then run after you make a change. Again if it fails check whether you have added the class to your target
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.