iOS Firebase UI 给出很多错误

iOS Firebase UI Gives many errors

我在尝试使用 (pod 'FirebaseUI', '~> 4.0') 依赖项构建项目时遇到很多错误。

我的 pod 文件看起来像这样:

平台:ios,'9.0'

use_frameworks!

连播 'Firebase/Core'

连播 'Firebase/Database'

连播 'Firebase/Auth'

连播 'Firebase/Storage'

pod 'FirebaseUI', '~> 4.0' (这会导致很多错误)

连播 'FirebaseUI/Google'

连播 'FirebaseUI/Facebook'

连播 'FirebaseUI/Twitter'

部分错误是:

/Users/Home/GoogleDrive/iOS/TheBolt/Pods/Target Support Files/nanopb/nanopb-umbrella.h:1:9: Could not build module 'UIKit'

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:505:9: Unknown type name 'NSString'

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:514:50: Missing '#include '; declaration of 'Protocol' must be imported from module 'ObjectiveC.runtime' before it is required

我正在使用 Xcode 9 和 swift 4。我尝试在构建设置中使用 swift 3.2,但仍然存在相同的错误。

不需要 (pod 'FirebaseUI', '~> 4.0') 和其他。单独添加或只添加必要的登录 pods 解决了问题