I'am finalising an Open Source C coded CometD library, i thought it would be a good idea to open it to OSX/iOS users, like myself.
In order to ease up the work for OSX/iOS developers i wanted to switch from a static C library to a Xcode iOS Static Libary. So i followed advices found on the net, and generated a static iOS compatible library.
The problem is that, each time i try to use it i get an of type :
Undefined symbols for architecture x86_64: ******, referenced from: -********** in *******.a(*******.o)
This error get repeated for almost every C function that i have in my library.
First i though maybe the library is not x86_64 compatible, empty, or really doesn't have any x86_64 symbol in it.
So i checked with a "lipo -info" on the library and here is the answer :
To really be sure i also used "nm -arch x86_64" on the library, and went fetching for several undefined functions reported by Xcode as errors. I thought i will be wrong and find nothing but guess what ? I found the symbols :
So my question is :
If the symbols are present in a x86_64 compatible library, why is Xcode prompting this error ? Even if i compile the library for all arm*/s types i still get this x86_64 error.
Am i unaware of something or am i just doing it wrong ?
Your answers are always appreciated.
Aucun commentaire:
Enregistrer un commentaire