6

I have been stuck with the same bug the last few days when archiving for Xamarin.iOS. When I archive for iOS, it would take about 6-8 minutes before showing me the following error below.

MyProject.iOS/obj/iPhone/Debug/mtouch-cache/armv7/Syncfusion.Pdf.Portable.dll.s(1168720,8): error GDC116A36: can not encode offset '0x100FD98' in resulting scattered relocation.

The assembly 'Syncfusion.Pdf.Portable.dll' can't be AOT-compiled for 32-bit architectures because the native code is too big for the 32-bit ARM architecture.

I followed Microsoft forums and found that it was a Xamarin bug that should be resolved within the latest version. I have the latest Xcode 11.3.1 and latest Xamarin (Visual Studio 8.4.1) and I'm still getting errors.

I tried deleting obj and bin to and cleaning my solution. Any help would be greatly appreciated!

Mochi
  • 1,059
  • 11
  • 26
  • Why are you compiling for 32 bit? Apple requires 64 bit for all devices now – Jason Jan 16 '20 at 23:51
  • 1
    @Jason You're absolutely correct. I switched to "Supported Architectures" to ARM64 and I was able to archive. Can you please answer so I can give you credit? – Mochi Jan 17 '20 at 01:24

1 Answers1

6

Apple now requires all apps to be 64 bit. Be sure you that don't have any old 32 bit architectures selected in your project build settings.

Jason
  • 86,222
  • 15
  • 131
  • 146