How do I remove a bridge header without getting errors?
Go to Build Settings of your project, find Objective-C Bridging Header row and remove its contents.
Go to Build Settings of your project, find Objective-C Bridging Header row and remove its contents.
I have tried all of the above steps mentioned in the answers but nothing worked for me, the problem was basically with the deployment target version for the project and in the podfile. In my project deployment target was 10.0 while in my podfile it was 11.0.
Optional values of non-Objective-C types aren’t bridged into Objective-C. That is, the first three properties of TestClass below would be available in Objective-C, but the fourth wouldn’t: class TestClass: NSObject { var nsNumberVar: NSNumber = 0 // obj-c type, ok var nsNumberOpt: NSNumber? // optional obj-c type, ok var doubleVar: Double = 0 // bridged … Read more
Be careful to add the file to the folder that your error is complaining! I’ve made the same mistake, if you create the file from Xcode, it will go to the folder: Project->Project->Header.h And Xcode is looking for Project->Header.h That means you need to put the file inside your project folder (ProjectName->ProjectNameFolder)! Hope that helps … Read more