0

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

Xamarin
  • 27
  • 4

2 Answers2

0

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.

Zack
  • 1,255
  • 1
  • 2
  • 5
0

I solved this by simply changing the supported architectures to just x86_64 from iOS properties. Double click iOS project to open iOS properties window and set like below. Clean and rebuild; error will be gone.

enter image description here

Renji
  • 123
  • 8