3
votes

I am trying to build an iOS app on windows visual studio using Xamarin For Visual Studio Trial. When compiling I am getting this error:

Error 136 MT5201:Native linking failed. Please review user flags provided to gcc: "-L/Users/brandon/Library/Caches/Xamarin/mtbs/builds/iCropTrak_vsios/9bc8504a-65b2-484f-b71c-1d0cb02d21f6" "-lgdal_x86" "-lc3dsqlite3" "-lstdc++" "-all_load" [K:\Development\AZSim\Products\CropTrak\iCropTrak_vsios.csproj] 0 0

It compiles fine on the mac - but having trouble getting it going with the windows version. Any ideas as to why?

4

4 Answers

0
votes

Do you use {ProjectDir} in your project options ? If so you might be running into a current limitation where the directories won't match between platforms.

You should be able to workaround it, either by replacing {ProjectDir} or much better by using the [LinkWith] attribute.

0
votes

we discover this issue like two weeks ago, this only happens in simulator AFAIK. Seems that the dependency LevelDB left their Main symbol. I'll file a bug on Firebase. The workaround for this is to change the behavior of the Registrar on Simulator:

  1. Open your project settings
  2. Go to Build tab
  3. Select iOS Build option
  4. Type --registrar:static in Additional mtouch arguments textbox
  5. Click on Ok

Don't forget to add this in Release and Debug configuration of iPhoneSimulator platform.

0
votes

when i checked the source of the packages i found that they relies on

Xamarin.Build.Download

when i install the package problem resolved .