我正在尝试在我的 Flutter 应用程序中使用 Facebook 登录。这样做的图书馆似乎是 https://pub.dev/packages/flutter_facebook_auth/install .
我遵循了所有安装说明 - 我能够在 iPhone 模拟器中正确运行该应用程序。我无法在自己的设备上运行该应用程序。 XCode 构建成功完成,即 flutter build ios
工作但 flutter run -d XXXXXXXX-XXXXXXXXXXXXXXXX
(设备 ID 截断)失败并出现很多错误,这是 flutter run
的一些输出(见下文)。>
如何让它在我的设备上运行?
/Users/imrigoldberg/Documents/flytrex/shopper/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Instrument/FBSDKInstrumentManager.m:58:52: error: reference to 'FBSDKSettings' is ambiguous
settings:(id<FBSDKSettings>)settings
^
In file included from /Users/imrigoldberg/Documents/flytrex/shopper/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Instrument/FBSDKInstrumentManager.m:34:
In file included from /Users/imrigoldberg/Documents/flytrex/shopper/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKSettings+SettingsProtocols.h:22:
/Users/imrigoldberg/Documents/flytrex/shopper/build/ios/Debug-iphoneos/FBSDKCoreKit/FBSDKCoreKit.framework/PrivateHeaders/FBSDKSettingsProtocol.h:23:11: note: candidate found by name lookup is 'FBSDKSettings'
@protocol FBSDKSettings
^
In file included from /Users/imrigoldberg/Documents/flytrex/shopper/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Instrument/FBSDKInstrumentManager.m:31:
/Users/imrigoldberg/Documents/flytrex/shopper/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKSettingsProtocol.h:23:11: note: candidate found by name lookup is 'FBSDKSettings'
@protocol FBSDKSettings
^
/Users/imrigoldberg/Documents/flytrex/shopper/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Instrument/FBSDKInstrumentManager.m:58:52: error: type argument 'FBSDKSettings' must be a pointer (requires a '*')
settings:(id<FBSDKSettings>)settings
^
*
/Users/imrigoldberg/Documents/flytrex/shopper/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Instrument/FBSDKInstrumentManager.m:58:49: error: type arguments cannot be applied to non-class type 'id'
settings:(id<FBSDKSettings>)settings
^ ~~~~~~~~~~~~~~~
2 warnings and 14 errors generated.