I am trying to update a Xamarin.iOS binding which points to code that I manage, and I'm having trouble now that I've replaced an external .a library reference with a .framework. Particularly, when I try to compile my binding, native linking is failing for the library which I replaced.
Native linking error: framework not found SVGKit for architecture arm64/i386/armv7/armv7s (MT5209)
I know for a fact that SVGKit supports these architectures, but I'm unsure how to include them in the generated binary when referencing from a .framework.
Hello I would do this to diagnose the issue
First I would check if
SVGKit.framework/SVGKit
is a fake framework (static library disguised as a framework) or a dynamic one (iOS 8+ support only) using thefile
command on the binaryFoo
is a dynamic library, notice theMach-O
andBar
is a static library disguised as a framework notice thear
Now if it is a fake framework (static library) just take the
SVGKit.framework/SVGKit
binary and rename it toSVGKit.a
and add it to your binding project, it should work as usualIf it is a Dynamic Framework then follow these instructions on how to do it.[0]
[0]: Just a side note, once Xamarin Studio 6.0 is out you will not need to manually modify the binding project
.csproj
file, you will be able to do it within the IDE itself :)