简体   繁体   中英

xamarin ios library linking error. on visual studio

I am connected to a mac on LAN, and developing ios app on visual studio, after adding any packange from nuget i get this error.

Severity    Code    Description Project File    Line    Category    Suppression State
Error       Native linking failed, undefined symbol: __monodroid_lref_log_new. This symbol was referenced by the managed member Android.Runtime.JNIEnv._monodroid_lref_log_new. Please verify that all the necessary frameworks have been referenced and native libraries linked.   Perkit.ios  

I guess that you had referenced Mono.Android.dll solution-wide, but obviously iOS doesn't know how to handle this. Removed this reference from the iOS project, Cleaned and Rebuilt, and that fixed it. A case similar to your question.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM