mardi 4 août 2015

Bridging objective-c library in swift project does not work

In my swift project in need to use snmp++ project ( http://ift.tt/1fyN2Ff ). The snmp++ project is written in c++ and then objective-c wrapper is created for functions.

The project generates libMobileSNMP_PP.a file which i include in my swift project and then create a bridging header and in the bridging header inport "XISMobile_SNMP_PP.h".

Also included .mm and .h files in the swift project as shown in the attached image example1

enter image description here

at compile it gives "could not reference bridging file in the app".

I refered link Can I mix Swift with C++? Like the Objective - C .mm files but still issue exist.

I even tried steps as given in example as shown http://ift.tt/1P42pSz but no success.

Please tell where i'm doing or missing any step.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire