简体   繁体   中英

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)

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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