Xcode MyProjectName-Bridging-Header.h does not exist

If the bridging file is created at the same level as the other classes, you might need to add the relative path, as these pictures show. Note here that the bridging file is created at the same level as the other classes:
enter image description here

I have the name entered correctly in the Build Settings,
enter image description here

but the compiler doesn’t find the file.
enter image description here

Therefore, if I add the relative path from the root of the project (that is, I add ./ProjectName/BridgerFileName.h),
enter image description here

now it compiles and I can call a method in my Objective C class:
enter image description here

Leave a Comment