I have my bridging header file where I added new objective c file:
#import "MyFile.h"
Then I hit run and project is not building. I got errors like:
Cannot find interface declaration
Expected type
Cannot find protocol declaration
failed to emit precompiled header '/Users/user/Library/Developer/Xcode/DerivedData....
And others. Xcode tells that errors randomly. I cleaned project and got different other errors. Then, I remove MyFile
from bridging header file. And now project is building correctly without any errors. Why? How to solve it?