So I am going crazy, since I keep on getting the error as described in the title and nothing that I worked.
I will show you what I have tried:
What else can I do?
Please help.
So I am going crazy, since I keep on getting the error as described in the title and nothing that I worked.
I will show you what I have tried:
What else can I do?
Please help.
Creating Bridging Header File Manually
First of all delete the Bridging header file which Xcode or may be you have created. And Select your project goto > Build Settings > Search the keyword. Swift Compiler - General. Click on Objective-C Bridging Header , delete that path. Now clean your Project.
Now select your project > Click on Window in the navigation bar . Select Projects and delete your derived data from there.
Now create a new file , select the Source and then select the Header File and create your Bridging header file . File name must be your projectname-Bridging-Header.h and then create it
Select your project goto > Build Settings > Search the keyword. Swift Compiler - General. Click on Objective-C Bridging Header and now add the path in this Objective-C Bridging Header like projectname-Bridging-Header.h
Now import your classes into bridging header file and you can compile it your code easily.
Your bridging header file looks like this when you are creating your file manually.
In your project you don't have bridging-Header.h file, but your project has that path. For this you need to delete that path...
Go to targets file and select Build Settings, ---->Swift Compiler - General, and delete the bridging-Header.h. Follow below screen shots....
Delete the bridging-Header.h file in Swift Compiler - General
Now you got like this...
If above solutions doesn't work, follow this steps:
This works for me!
remove path at project goto > Build Settings > Search the keyword. Swift Compiler - General -> Objective-C Bridging header worked for me.