Xamarin.ios app Native linking failed after updating VS 2019

微笑、不失礼 提交于 2020-05-29 07:33:42

问题


I am developing xamarin.ios application using Visual studio 2019 on PC which paired with late 2011 Macbook Pro. Today I accidentally updated the Visual studio to Version 16.5.4. Which Updated the xamrin.ios to Version 13.16.0.13(b75deaf). After that I can't able to run application. The visual studio tells to update the Xcode to 11.4 Which is currenlty 11.3. In order to do that I need to update the OS to catelina.,which is not provided for the old mac(also I don't want to upgrade).

Apart from this warning these error also thrown by VS.

Native linking failed. Please review the build log and the user flags provided to gcc: -ObjC -lc++ -lsqlite3 -lz    



Native linking failed, undefined symbol: ___darwin_check_fd_set_overflow. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.


linker command failed with exit code 1 (use -v to see invocation)   

How can I solve this issue without updating the Xcode.Is downgrading of VS is possible? Any help is really apprecitated.


回答1:


If you want to get a older version of Visual-Studio or Xamarin.iOS, you need to contact to the support team to request the version you want.

Refer: install-previous-version-of-visual-studio-for-mac and downgrade-xamarin-ios-in-visual-studio




回答2:


Thanks for Jack Hua - MSFT's answer. Rather than downgrading visual studio in PC, I downgraded the Xamrin.ios in my mac. Earlier I used Visual studio 16.5.0 which comes with Xamarin.ios Vesion 13.14.1.39. which was overwritten when I updated the VS 2019 to 16.5.4.

So I downloaded the Xamrin.ios 13.14.1.39 from this site.Link.Normally to download xamarin.ios package, we need to have account. In this link just replace the version number to directly download the package.After installing the package in mac, I am able to build the App.



来源:https://stackoverflow.com/questions/61237360/xamarin-ios-app-native-linking-failed-after-updating-vs-2019

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!