首页 > 解决方案 > Xamain.IOS.GoogleSignIn 库错误

问题描述

在 ios 项目中,我们已经安装了 firebase ios 绑定库,我们还需要 GoogleSignIn 库,但是在安装它之后,我们在构建时出现了一些错误。

Error: linker command failed with exit code 1 (use -v to see invocation) (GoBatumi.IOS)


error MT5209: Error: file not found: /Users/tornike/Desktop/gobatumimobile/GoBatumi.IOS/obj/iPhoneSimulator/Debug/mtouch-cache/GoogleSignIn (GoBatumi.IOS) Native linking

MTOUCH: Error MT5202: Native linking failed. Please review the build log. (MT5202)

我认为 Xamarin.Firebase 包和 google 包相互依赖,我认为它有一些版本问题。

Xamarin.Firebase.iOS.Analytics version - 4.0.5.1
Xamarin.Firebase.iOS.Auth version - 4.4.1.1
Xamarin.Firebase.iOS.Core version - 4.0.13.1
Xamarin.Firebase.iOS.InstanceID version - 2.0.8
Xamarin.Google.iOS.SignIn version - 4.1.1.1

有没有办法解决这个问题?我能做些什么 ?

标签: firebasexamarinxamarin.iosgoogle-signin

解决方案


尝试:

1) 清洁溶液

2)删除obj和bin文件夹

3) 添加--registrar:static作为附加 mtouch 参数

如果这不能解决问题,请确保使用最新版本的 XCode


推荐阅读