无法在swift项目中通过cocoapod导入Firebase

时间:2017-10-13 08:11:39

标签: ios xcode firebase swift3

我正在尝试将Firebase Google SignIn集成到我的swift项目中,但是当我通过cocoapods安装SDK时,我收到platform :ios, '9.0' target 'swiftapp' do use_frameworks! pod 'Alamofire', '~> 4.5' pod "Bottomsheet" pod "SearchTextField" pod 'Firebase' pod 'FirebaseAuth' pod 'FirebaseDatabase' pod 'GoogleSignIn' end 错误“No Such Module”。我尝试过在类似问题中提供的解决方案,但没有一个能帮助我。我在下面提到我的podfile。

Firebase

我还附上了一张图片,其中显示了我项目中可用的所有from PIL import Image, ImageFilter image = Image.open('picture1.png') image = image.filter(ImageFilter.FIND_EDGES).fill(yellow) image.save('new_name.png') 模块。enter image description here

编辑: - 我在我的项目中安装Firebase之前更新了我的cocoapods。而且,出于测试目的,我尝试在新项目中安装Firebase,它在该项目中运行良好。

编辑: - 我正在使用1.3.1版本的cocoapods。

enter image description here

任何人都可以帮忙。

由于

2 个答案:

答案 0 :(得分:0)

您可以在代码中导入您需要的Firebase部分。例如: - 如果您需要执行firebase身份验证,则可以单独导入FirebaseAuth。因此,这取决于您使用的Firebase的哪个部分。

答案 1 :(得分:0)

这是一个已知问题,将cocoapods更新为1.3.0应解决它。

你也应该

  

pod' Firebase / Core'

你的podfile中的

,而不是

  

pod' Firebase'

相关问题