How to add FastPdfKit.framework in Xamarin.iOS

Hello,

I have a xamarin.ios project that include a static library (.a) developed previously. This library uses "FastPdfKit.framework", so i include framework in my library and my xamarin.ios project by "project options -> iOS Build -> Additionnal mtouch arguments (--framework:${ProjectDir}/frameworks/FastPdfKit.framework)".

But, during compilation, tamarin doesn't link the FastPdfKit.framework.

Can anyone help me? Thanks

Compilation errors:

ld: warning: ignoring file /Users/../Documents/XAMARIN/MyApp.IOS/frameworks/FastPdfKit.framework/FastPdfKit, missing required architecture arm64 in file /Users/../Documents/XAMARIN/MyApp.IOS/frameworks/FastPdfKit.framework/FastPdfKit (2 slices) Undefined symbols for architecture arm64: "OBJC_CLASS$MFDocumentManager", referenced from: objc-class-ref in MyLib.a(Page.o) "_OBJC_CLASS$_ReaderViewController", referenced from: objc-class-ref in MyLib.a(Page.o)
ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

MTOUCH: error MT5209: Native linking error: warning: ignoring file /Users/../Documents/XAMARIN/MyApp.IOS/frameworks/FastPdfKit.framework/FastPdfKit, missing required architecture arm64 in file /Users/../Documents/XAMARIN/MyApp.IOS/frameworks/FastPdfKit.framework/FastPdfKit (2 slices) MTOUCH: error MT5211: Native linking failed, undefined Objective-C class: MFDocumentManager. The symbol 'OBJC_CLASS$MFDocumentManager' could not be found in any of the libraries or frameworks linked with your application. MTOUCH: error MT5211: Native linking failed, undefined Objective-C class: ReaderViewController. The symbol '_OBJC_CLASS$_ReaderViewController' could not be found in any of the libraries or frameworks linked with your application. MTOUCH: error MT5202: Native linking failed. Please review the build log.

Sign In or Register to comment.