Can I have Swift, Objective-C, C and C++ files in the same Xcode project?

YES. You can mix Swift, C, C++, Objective-C & Objective-C++ files in the same Xcode project. C // Declaration: C.h #ifndef C_h #define C_h #ifdef __cplusplus extern “C” { #endif void hello_c(const char * name); #ifdef __cplusplus } #endif #endif /* C_h */ // Definition: C.c #include “C.h” #include <stdio.h> void hello_c(const char * name) … Read more

Xcode not automatically creating bridging header?

The reason of your issue is, the Xcode build settings still holds the path to auto generated Bridging Header file. You cannot get any build errors because of the header file (ProjectName-Bridging-Header.h) still exist in your project directory. How to resolve: Click on your project target, Go to Build Settings tab (choose all instead of … Read more

Swift Bridging Header import issue

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