1) Create a header file: ProjectName-Bridging-Header.h
2) Physically it place it inside your project’s folder (not in the root)
3) In Xcode it should appear inside your project’s folder
4) In “Build Settings”:
a) Place the path to your header in “Objective-C Bridging Header”. For example: “ProjectFolder/ProjectName-Bridging-Header.h”
b) Make sure “Install Objective-C Compatibility Header” is set to “Yes”
c) Under “Linking”, “Other Linker Flags” should include “-ObjC”
6) Inside your bridging header import all your necessary headers.
No hay comentarios:
Publicar un comentario