简体   繁体   English

'使用未解决的标识符FIRStorage'(Swift-Xcode 7.3.1)

[英]'Use of unresolved identifier FIRStorage' (Swift - Xcode 7.3.1)

I've been using Firebase SDK for some months but never got an issue. 我使用Firebase SDK已有几个月了,但从未遇到问题。 This time I can't get the storage to work even if I did all the steps correctly. 这次,即使我正确地执行了所有步骤,也无法使存储正常工作。 I have the correct podfile and when I do the install I can see it downloads the correct framework and I can see the framework listed in my project, too. 我有正确的podfile,安装后我可以看到它下载了正确的框架,我也可以看到项目中列出的框架。

这是列出的框架的图像。

I tried to change 'import Firebase' to 'import FirebaseStorage', it recognizes the framework and doesn't give any error on the import, but I still get the same error. 我试图将'import Firebase'更改为'import FirebaseStorage',它可以识别框架并且在导入时不给出任何错误,但是我仍然遇到相同的错误。

这是Firebase导入错误的图像。

Edit: I know how to show images in my question but I can't do it because I must have at least 10 reputations. 编辑:我知道如何显示问题中的图像,但是我不能这样做,因为我必须至少有10个声誉。

Edit 2: I resolved and I'm waiting to accept my own answer. 编辑2:我解决了,我在等待接受自己的答案。

Ok, that project was not working so I created a new project with the same podfile and all went well. 好的,那个项目无法正常工作,所以我用相同的podfile创建了一个新项目,一切顺利。 Maybe it was a naming conflict because stupidly I named my first project FirebaseStorage. 也许是命名冲突,因为我愚蠢地将我的第一个项目命名为FirebaseStorage。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM