soheilbm / Firebase

[DEPRECATED] Unofficial Carthage support for Firebase libraries
MIT License
102 stars 37 forks source link

Apple Match-O Linker (Id) Error #26

Closed maysamsh closed 7 years ago

maysamsh commented 7 years ago

I've done exactly what you wrote but I get this error (for FirebaseAuth):

Undefined symbols for architecture arm64: "_FIRAuthStateDidChangeInternalNotification", referenced from: ___50-[FIRAuth possiblyPostAuthStateChangeNotification]_block_invoke in FirebaseAuth(FIRAuth_d3345993aebdf1a4605c6b15c3385d2b.o) "_FIRAuthStateDidChangeInternalNotificationAppKey", referenced from: -[FIRAuth possiblyPostAuthStateChangeNotification] in FirebaseAuth(FIRAuth_d3345993aebdf1a4605c6b15c3385d2b.o) "_FIRAuthStateDidChangeInternalNotificationTokenKey", referenced from: -[FIRAuth possiblyPostAuthStateChangeNotification] in FirebaseAuth(FIRAuth_d3345993aebdf1a4605c6b15c3385d2b.o) ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

screenshot at nov 15 14-11-15 screenshot at nov 15 14-01-56 screenshot at nov 15 14-05-08
SzymonMrozek commented 7 years ago

Same here

maysamsh commented 7 years ago

I gave up and used the released .framework files. It works fine.

SzymonMrozek commented 7 years ago

What do you mean?

tbaranes commented 7 years ago

I'm getting the same issue, @maysamsh interesting too by your solution if you can explain it.

SzymonMrozek commented 7 years ago

The solution was to add it without using this repo 😄

maysamsh commented 7 years ago

@tbaranes Just add it manually, follow this https://firebase.google.com/docs/ios/setup

tbaranes commented 7 years ago

Got it, I tried this as well, but still having the issue... 😑

maysamsh commented 7 years ago

@tbaranes What about my trick? delete the Info.plist, and drag it to your project from another project.

tbaranes commented 7 years ago

Not sure how that would help, but it didn't work. One thing that may be different from the usual cases, I'm adding Firebase to a framework target instead of the app one, but I don't see why it won't work this way.

tbaranes commented 7 years ago

I finally get it working by mixing the instructions from this repository and the manual one from firebase. Not really sure why is it working now and not before, but, well, it's working.

Closing since everyone seems to have find a way to make it work!