objective c - IOS Framework from C library give linking issues -
i'am finalising open source c coded cometd library, thought idea open osx/ios users, myself.
in order ease work osx/ios developers wanted switch static c library xcode ios framework. followed advices found on net, , generated static ios compatible library xcode before wrapping in ios framework.
i made sure "architectures" "standard armv7 armv64" , "base sdk" put "latest ios" compiled, warnings popped out library generated , gave me product.a .
the problem can't include in other ios project. put library , headers in ios project found sea of error telling me :
ignoring file * * *.a, file built archive not architecture being linked (i386): * * *.a undefined symbols architecture i386:
...
- barely c functions
...
but has compiled compatible ios static library ? why yelling @ me i386 architecture ? mind blowing !
i fetched interweb no real answer found.
so question is, possible make such thing (c library inside ios framework) ? if yes (hopefully), how avoid errors , make compile , produce product ?
any answer appreciated, thank reading.
Comments
Post a Comment