更新时间:2023-12-04 16:26:22
有两个问题:
1)Google Developer网站上说明的手动导入框架的说明有些含糊.因此,我遵循以下教程来导入框架并设置我的开发人员帐户: http://www.mokacoding.com/blog/setting-up-firebase-without-cocoapods/
1) The instructions stated on the Google Developer website for importing the frameworks manually, are somewhat lacklustre. So I followed the following tutorial to import the frameworks and setup my developer account: http://www.mokacoding.com/blog/setting-up-firebase-without-cocoapods/
2)导入所有框架/资源/plist文件/等之后,您仍然会遇到以下构建错误:
2) After you have imported all the frameworks/resources/plist files/etc... you will still get the following build error:
找不到"FirebaseCore/FirebaseCore.h"文件
'FirebaseCore/FirebaseCore.h' file not found
为了解决此问题,请清洁您的Xcode项目,然后关闭该项目.然后重新打开该项目并重新生成它.现在可以正常工作-也许Xcode项目现在可以看到框架文件或某些东西了……不确定,但这是唯一对我反复起作用的解决方案.
In order to get around this issue, clean your Xcode project and then close the project. Then reopen the project and rebuild it. It will now work - perhaps the Xcode project can now see the framework files or something... not really sure, but it's the only solution that has repeatedly worked for me.
更新
我认为这只是Xcode 9.x
的一个错误,自从我升级到Xcode 10
以来,我就再也没有这个问题了.只需照常导入所有框架,然后构建并运行项目即可.
I think this was just a bug with Xcode 9.x
, ever since I upgraded to Xcode 10
, I haven't had this issue at all. Just import all the frameworks as usual and build and run the project.