Expected Type & Failed to Import Bridge Header

I am working on a project that contains Swift code and Objective_C, it works without any problems, until I tried to import the ".h" class into the "Bridging-Header" file:

  • Expected Type : in the class I tried to import
  • Failed to import bridge header '/Users/sysadmin/Desktop/Application/Classes/UI/Application-Bridging-Header.h'

however, when I imported another class into the Bridging Header, which works without problems!

+4
source share
2 answers

3 c Swift. 1) #import "FileName.h" 2) #import <FolderName/FileName.h> 3) @import PackageName; @import Alamofire;

0

,

#import "classname.h" if this fails try
#import `<classname/classname.h>`

, . , ,

0

Source: https://habr.com/ru/post/1677982/


All Articles