xamarin中的本机链接错误 [英] Native Linking errors in xamarin

查看:58
本文介绍了xamarin中的本机链接错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我今天尝试编译我的xamarin项目,突然出现以下错误:

I am try to compile my xamarin project today and suddenly i am getting these errors:

错误MT5210:本机链接失败,未定义符号:_mono_handle_global_vregs.请验证是否已引用了所有必需的框架,并且本机库是否正确已链接.
错误MT5210:本机链接失败,未定义符号:_mono_inst_name.请验证是否已引用了所有必需的框架,并且本机库已正确链接.
错误MT5210:本机链接失败,未定义符号:_mono_local_deadce.请验证是否已引用所有必要的框架和本机库已正确链接.
错误MT5210:本机链接失败,未定义符号:_mono_print_code.请确认所有必要的框架都已被引用,本机库已正确链接.
错误MT5210:本机链接失败,未定义符号:_mono_type_to_regmove.请确认所有必要已经引用了框架并且适当地使用了本机库已链接.
错误MT5210:本机链接失败,未定义符号:_type_to_eval_stack_type.请验证是否已引用了所有必需的框架,并且本机库是否正确已链接.
错误MT5202:本机链接失败.请查看构建日志.

error MT5210: Native linking failed, undefined symbol: _mono_handle_global_vregs. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
error MT5210: Native linking failed, undefined symbol: _mono_inst_name. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
error MT5210: Native linking failed, undefined symbol: _mono_local_deadce. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
error MT5210: Native linking failed, undefined symbol: _mono_print_code. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
error MT5210: Native linking failed, undefined symbol: _mono_type_to_regmove. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
error MT5210: Native linking failed, undefined symbol: _type_to_eval_stack_type. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
error MT5202: Native linking failed. Please review the build log.

任何人都可以向我指出为什么会发生这种情况吗?

Can any one point me in any direction why these could be happening?

我有一个Firebase iOS SDK作为绑定项目添加到了解决方案中

I have a Firebase iOS sdk added to the solution as binding project

推荐答案

这是Xamarin错误->

It is Xamarin bug -> Watch here. You should remove from additional mtouch arguments "--gcc_flags -load_all" to be able to build the project.

更新

@Kartik,此处,您可以找到有关 mtouch .

@Kartik, Here you can find documentation about mtouch.

-gcc_flags 的意思是:

直接将一些标志添加到链接最终结果的gcc调用中二进制的.这可用于链接来自另一个静态对象的静态代码库文件(libXXX.a).darwin链接器将删除它所包含的所有代码没有看到直接引用的内容,请添加-ObjC以保留所有内容Objective-C细分或 -all_load 来保留所有静态库.

这篇关于xamarin中的本机链接错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆