So I had some issues with this before but I deleted my old question and updated it to this one. Here it goes:
I want to use a C++ Library in my iOS Swift project. With the help of this community I compiled my library as a static library (.a file). Now I created a new project to test this and I did only the following steps :
1. Create new Swift Project
2. Under Build Phases -> Link Binary with Libraries add my library (like so)
3. Add a new C++ File without a header file and add a bridging header with following contents :
//Wrapper.cpp
extern "C" void test()
{
//Just to test the swift - c++ connection later this file
//shall import the main header of the library.
}
//CAS Test-Bridging-Header.h
void test();
But now, when I compile I get this error (you can also see my project hierarchy on the left).
Thanks for all your help in advance !