Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode compile error with Firebase

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)

like image 807
SH10151 Avatar asked Mar 13 '23 11:03

SH10151


1 Answers

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.

like image 96
Tom el Safadi Avatar answered Mar 24 '23 18:03

Tom el Safadi