Home > Software design >  Native linking failed in xamarin.iOS
Native linking failed in xamarin.iOS

Time:09-28

I am using a native sdk (BrotherPrinter sdk) in my xamarin project, but while building the xamarin.iOS project am getting "Native linking failed" errors.How to fix this please help me on this.

I did the following things but it didn't worked.

Tried with Linker behavior : Don't link, sdk only and Link all

Deleting obj and bin files.

Clean & Rebuild the solution.

For the error MT5209 I have changed the architecture , and I hope it will work in real devices. These are the errors I am getting. enter image description here

CodePudding user response:

This happens when the native linker cannot find an Objective-C class. You can add the [Protocol] attribute to the api that binds the Objective-C protocol for annotation, this official document can help you solve the problem.

  • Related