miku
Aspiring developer
Profile
Posts: 401
Reg: Feb 20, 2014
zagorje ob savi
10,560
04/05/18 02:24 AM (2 weeks ago)

Installing Firebase using CocoaPods

I tried to install Firebase using CocoaPods in Xcode and get error:

Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_FIRApp", referenced from:
objc-class-ref in test40_appDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Anyone succeeded this?
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2248
Reg: Feb 22, 2012
Liverpool
31,330
like
04/05/18 10:15 AM (2 weeks ago)
You need to open the workspace not the project when using cocoa pods. That’s when I normally see that error with any cocoa pods .
 
miku
Aspiring developer
Profile
Posts: 401
Reg: Feb 20, 2014
zagorje ob savi
10,560
like
04/05/18 10:47 AM (2 weeks ago)
Thanks, but I did that. I also tried selfhosted and BT server, result is all the same. I think, if you try little test yourself (very straightforward: https://firebase.google.com/docs/ios/setup), you will found exactly the same error. I also tried: Build Settings > Other Linker Flags > on a new line $(inherited), still the same.
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2248
Reg: Feb 22, 2012
Liverpool
31,330
like
04/05/18 11:04 AM (2 weeks ago)
I avoid coacopods like the plague normally.
This is in my bookmarks used it last year to install without it.
It’s a year or two old but worked easy enough.
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2248
Reg: Feb 22, 2012
Liverpool
31,330
like
04/05/18 11:05 AM (2 weeks ago)
What is it your looking to build. CloudKit is easy enough no easy cross platform though
 
miku
Aspiring developer
Profile
Posts: 401
Reg: Feb 20, 2014
zagorje ob savi
10,560
like
04/05/18 11:16 AM (2 weeks ago)
Why Firebase? I installed OneSignal push notifications in Firebase in iOS in few minutes (try it, it is very easy), before it was really hard this to implement. Same is with adMob, beside that you have all analytics of your app and it works really, really fine. This is my experience with Firebase (on iOS and Android) which I used in non-BT apps. On my opinion Firebase is essential.
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2248
Reg: Feb 22, 2012
Liverpool
31,330
like
04/05/18 11:25 AM (2 weeks ago)
Cool I wasn't knocking it, just wondering what you were using it for.
I quite like there database model because it's JSON and it links well with buzztouch in that sense.


I forgot the link ha ha I must have sounded bonkers
http://www.mokacoding.com/blog/setting-up-firebase-without-cocoapods/
I used this a couple of years back I bet the principles are still the same.
 
miku
Aspiring developer
Profile
Posts: 401
Reg: Feb 20, 2014
zagorje ob savi
10,560
like
04/05/18 11:40 AM (2 weeks ago)
OK, but why do it hard way, if there is very logic solution. Looks like problem is BT: if BT community have a will to survive, questions like that should be really trivial; Firebase, OneSignal, adMob, etc. Without these essential items, which basically should be part of BT (and should take couple of minutes in any project, not hours and days) we are far behind others.
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2248
Reg: Feb 22, 2012
Liverpool
31,330
like
04/05/18 01:35 PM (2 weeks ago)
I've just got it to run through cocoapods.
Instructions followed off there site
added $(inherited)
to BOTH. Other Linker Flags

Ran first time
 
miku
Aspiring developer
Profile
Posts: 401
Reg: Feb 20, 2014
zagorje ob savi
10,560
like
04/05/18 02:03 PM (2 weeks ago)
Do you have result same as mine?
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2248
Reg: Feb 22, 2012
Liverpool
31,330
like
04/05/18 02:04 PM (2 weeks ago)
No it works. Firestore works analytics.
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2248
Reg: Feb 22, 2012
Liverpool
31,330
like
04/05/18 02:05 PM (2 weeks ago)
if you pm me your email I will send an image of what my other linker flags look like
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.