我有一个使用Facebook登录的Flutter项目,但是当我尝试运行它时,出现了一些错误...。我已经更新了Pod和Flutter插件,还清理了该项目。万事皆安。这些是我得到的错误。
[在调试模式下在iPhoneXʀ上启动lib / main.dart ...正在运行pod安装... 33,2s运行Xcode build ...
Xcode构建完成。 12,9秒无法建立iOS应用程式Xcode构建错误输出:↳**建立失败**
Xcode的输出:↳/用户/厄拉利亚语/下载/ flutter-login-screen-firebase-auth-facebook-login-master / ios / Pods / FBSDKLoginKit / FBSDKLoginKit / FBSDKLoginKit / FBSDKDeviceLoginManager.m:138:42:错误:未知选择器'fbErrorWithDomain:code:message:underlyingError:'的类方法NSError * wrappedError = [NSError fbErrorWithDomain:FBSDKLoginErrorDomain^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/用户/厄拉利亚语/下载/ flutter-login-screen-firebase-auth-facebook-login-master / ios / Pods / FBSDKLoginKit / FBSDKLoginKit / FBSDKLoginKit / FBSDKDeviceLoginManager.m:148:31:错误:未知选择器的类方法'extractPermissionsFromResponse:grantedPermissions:declinedPermissions:'[FBSDKInternalUtility extractPermissionsFromResponse:permissionResult^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/用户/厄拉利亚语/下载/ flutter-login-screen-firebase-auth-facebook-login-master / ios / Pods / FBSDKLoginKit / FBSDKLoginKit / FBSDKLoginKit / FBSDKDeviceLoginManager.m:151:67:错误:无可见“ FBSDKAccessToken”的@interface声明选择器'initWithTokenString:permissions:declinedPermissions:appID:userID:expirationDate:refreshDate:dataAccessExpirationDate:'FBSDKAccessToken * accessToken = [[FBSDKAccessToken alloc]initWithTokenString:tokenString~~~~~~~~~~~~~~~~~~~~~~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/用户/厄拉利亚语/下载/ flutter-login-screen-firebase-auth-facebook-login-master / ios / Pods / FBSDKLoginKit / FBSDKLoginKit / FBSDKLoginKit / FBSDKDeviceLoginManager.m:215:44:错误:未知选择器'fbErrorWithDomain:code:message:'的类方法NSError * unknownError = [NSError fbErrorWithDomain:FBSDKLoginErrorDomain^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~产生4个错误。/用户/厄拉利亚语/下载/ flutter-login-screen-firebase-auth-facebook-login-master / ios / Pods / FBSDKLoginKit / FBSDKLoginKit / FBSDKLoginKit / FBSDKLoginButton.m:209:25:错误:未知类选择器“ currentAccessTokenIsActive”的方法如果([FBSDKAccessToken currentAccessTokenIsActive]){^ ~~~~~~~~~~~~~~~~~~~~~~~~/用户/厄拉利亚语/下载/ flutter-login-screen-firebase-auth-facebook-login-master / ios / Pods / FBSDKLoginKit / FBSDKLoginKit / FBSDKLoginKit / FBSDKLoginButton.m:315:47:错误:未知类选择器“ currentAccessTokenIsActive”的方法BOOL accessTokenIsValid = [FBSDKAccessToken currentAccessTokenIsActive];^ ~~~~~~~~~~~~~~~~~~~~~~~~产生2个错误。
无法为模拟器构建应用程序。在iPhone X上启动应用程序时出错。
如果有人可以帮助我,我会感激..
问候,
非常感谢。
是否要将您的podfile和pubspec放在这里?
我现在遇到了同样的问题。我的猜测(基于Firebase + flutter的其他情况)是您有冲突的Firebase软件包/版本