Xcode编译Firebase错误 [英] Xcode compile error with Firebase

查看:162
本文介绍了Xcode编译Firebase错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是将Firebase框架安装到Xcode(由于其他不可解决的问题,不使用CocoaPods)。我遵循此处的Firebase替代设置说明(手动拖动FireBase 2.5框架到我的项目)。

问题是,当我编译我的应用程序时,我得到27错误:
截图



我只是使用入门页面中的示例代码。 / p>

事实上,我到目前为止所使用的只是第一行,但它甚至不会实例化。 (var ref = Firebase(url:我的firebase网址在这里)

我在Xcode 7.2和Swift 2.1上,我的目标是使用模拟器的iOS 9.2。 / p>

请帮助!
谢谢。

我也应该加上libicucore .dylib和libc ++。dylib不再可以作为你提到的来自firebase.com/docs/ios/alternate-setup.html的可链接库提供。所以也许这是相关的?有人提到libz.tbd是使用的现在?(我正在使用)

解决方案

如果您的目标是9.2,那么框架更改为以下内容:


libicucore.dylib to libicucore.tbd

libc ++。dylib to libc ++。tbd p>

它们完全相同,所以使用它们,您必须使用它们才能正常工作。



苹果的评论:


对于那些好奇的人来说.tbd文件是新的基于文本的存根
库,它提供了在SDK中使用的存根
库的更加紧凑的版本,并有助于显着减少
的下载大小。



I just installed the Firebase framework to Xcode (not using CocoaPods due to other unsolvable issues with that). I followed the Firebase Alternative Setup instructions from here (manually dragging the FireBase 2.5 Framework to my project).

Problem is, when I compile my app I get 27 errors: screenshot

I'm just using the sample code from the Getting Started page.

In fact, all I'm using so far is the first line, but it won't even instantiate that. (var ref = Firebase(url:"my firebase URL here")

I'm on Xcode 7.2 and Swift 2.1. My target is iOS 9.2 using the Simulator.

Please help! Thanks.

PS. I should also add that libicucore.dylib and libc++.dylib no longer appear to be available as linkable libraries that you mention to include from firebase.com/docs/ios/alternate-setup.html So maybe this is related? Someone mentioned libz.tbd is the one to use now? (which I'm using)

解决方案

If you are targeting 9.2 then the frameworks changed to the following:

libicucore.dylib to libicucore.tbd

libc++.dylib to libc++.tbd

They are exactly the same so use them instead, you have to use them in order to get it working.

A comment by apple:

For those who are curious, the .tbd files are new "text-based stub libraries", that provide a much more compact version of the stub libraries for use in the SDK, and help to significantly reduce its download size.

这篇关于Xcode编译Firebase错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆