如果它是动态框架,请遵循以下说明关于如何做.[0] [0]:附带一提,一旦Xamarin Studio 6.0推出,您将无需手动修改绑定项目.csproj文件,您将能够在IDE本身内完成它:)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 issueFirst I would check if SVGKit.framework/SVGKitis a fake framework (static library disguised as a framework) or a dynamic one (iOS 8+ support only) using the file command on the binaryfile Foo.framework/FooFoo.framework/Foo: Mach-O universal binary with 4 architecturesFoo.framework/Foo (for architecture i386): Mach-O dynamically linked shared library i386Foo.framework/Foo (for architecture x86_64):Mach-O 64-bit dynamically linked shared library x86_64Foo.framework/Foo (for architecture armv7): Mach-O dynamically linked shared library armFoo.framework/Foo (for architecture arm64): Mach-O 64-bit dynamically linked shared libraryfile Bar.framework/BarBar.framework/Bar: Mach-O universal binary with 4 architecturesBar.framework/Bar (for architecture armv7): current ar archive random libraryBar.framework/Bar (for architecture i386): current ar archive random libraryBar.framework/Bar (for architecture x86_64):current ar archive random libraryBar.framework/Bar (for architecture arm64): current ar archive random libraryFoo is a dynamic library, notice the Mach-O and Bar is a static library disguised as a framework notice the arNow if it is a fake framework (static library) just take the SVGKit.framework/SVGKit binary and rename it to SVGKit.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 :) 这篇关于Xamarin.iOS与第三方框架的绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
09-15 13:20