Xamarin.ios 为xamarin ios构建firebase ios sdk绑定时发生链接器错误

Xamarin.ios 为xamarin ios构建firebase ios sdk绑定时发生链接器错误,xamarin.ios,xamarin,firebase,Xamarin.ios,Xamarin,Firebase,我已经在xamarin中为最新的firebase sdk创建了ios绑定。我补充说 [assembly: LinkWith("Firebase.a", LinkTarget.Simulator | LinkTarget.ArmV7, ForceLoad = true, Frameworks = "CFNetwork Security SystemConfiguration", LinkerFlags = "-ObjC -fobjc-arc -licucore -lc++")] 当我编译时,在“

我已经在xamarin中为最新的firebase sdk创建了ios绑定。我补充说

[assembly: LinkWith("Firebase.a", LinkTarget.Simulator | LinkTarget.ArmV7, ForceLoad = true, Frameworks = "CFNetwork Security SystemConfiguration", LinkerFlags = "-ObjC -fobjc-arc -licucore -lc++")]
当我编译时,在“编译为本机代码”阶段,编译器出错并显示以下消息:

error MT5211: Native linking failed, undefined Objective-C class: _OBJC_CLASS_$_FirebaseHandle. If '_OBJC_CLASS_$_FirebaseHandle' is a protocol from a third-party binding, please check that it has the [Protocol] attribute in its api definition file, otherwise verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
知道为什么会这样吗

[更新]

进一步分析后,我发现firebase sdk的一个头文件包含以下条目

typedef NSUInteger FirebaseHandle;
我也在ApiDefinition.cs文件中添加了相应的绑定信息

[BaseType(typeof(NSObject))]
interface FirebaseHandle
{
}
但是我仍然得到错误

尝试添加

SmartLink=true

x.linkwith.cs
文件

并从
ApiDefinition.cs

[BaseType(typeof(NSObject))]
interface FirebaseHandle
{
}

这个图书馆有什么变化吗?是的,但那是一个很老的帖子。我使用的是sdk的最新版本,但您添加了库“libc++.dylib”了吗?我添加了-LinkerFlags=“-ObjC-fobjc-arc-licucore-lc++”一个更新,它在模拟器中工作,但无法部署在设备上-iphone 5s