Reputation: 81
I'm trying to bind the third party static library with iOS app using binding project. After adding the static library binding project builds successfully. But my iOS app showing some native linking errors as shown in the attached image. Could anyone help me on this please?
Upvotes: 0
Views: 317
Reputation: 19335
The EA* errors can be resolved by adding this to the LinkWith attribute of the static library in your binding project:
[assembly: LinkWith (..., Frameworks = "ExternalAccessory")]
The SCNetworkReachabilityCreateWithAddress error can be resolved by adding SystemConfiguration
to the list of frameworks in the LinkWith attribute (like above).
The BZ2_bzBuffToBuffCompress error is probably a function your static library references, but doesn't include. You might be able to work around it by adding -dead_strip to linker flags:
[assembly: LinkWith (..., LinkerFlags = "-dead_strip")]
which will tell the native linker to remove unused code, which may remove the code that calls BZ2_bzBuffToBuffCompress, thus working around it. It may also remove too much code, so you'll have to try and see what happens.
Upvotes: 1