question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

build error "_OBJC_CLASS_$_RNFIRMessaging"

See original GitHub issue

Hi,

I’m using react-native 0.48.2 and the last know sdk version.

I’m not using cocoapods for the project (kinda lost with it), I did every steps explained in the FCM README

  • drag and drop each .framework
  • add to target
  • make sure that a specific checkbox is checked

Then I modified every needed file (AppDelegate.m | h)

And now whenever I try to build I got this this

  "_OBJC_CLASS_$_RNFIRMessaging", referenced from:
      objc-class-ref in AppDelegate.o
  "_OBJC_CLASS_$_SKPaymentQueue", referenced from:
      objc-class-ref in FirebaseAnalytics(FIRAInAppPurchaseTransactionReporter_51b6624ff1330bf43a3ed7d9ba76e1ba.o)
  "_OBJC_CLASS_$_SKProductsRequest", referenced from:
      objc-class-ref in FirebaseAnalytics(FIRAProductsRequest_b9979194c8f29313114f911734ebc0e8.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)```

I really am inexperienced with XCODE and IOS development so I'm sorry if I didn't fill this issue right, I will try my best to correct it with your advice

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:20 (7 by maintainers)

github_iconTop GitHub Comments

12reactions
comurcommented, Dec 14, 2017

For your information, I solved this (after 3-4 hours…) by adding

#import "Firebase.h"

just before

#import "RNFIRMessaging.h"
8reactions
maieonbrixcommented, Dec 8, 2017

OMG, @evollu Thank you so much for your work and your reactivity !!!

I just fixed my problem by simply drag and dropping the RNFireMessaing.xcodeproject into the libraries of mine and linking it, I didn’t do react-native link in the first place so that’s on me 🤦‍♂️

Read more comments on GitHub >

github_iconTop Results From Across the Web

IOS build errors - Xcode 13 - Stack Overflow
Below are errors while building in latest xcode 13 & Mac Apple Pro M1 chip <unknown>:0: error: module map file ...
Read more >
Undefined Symbols For Architecture I386 "_Objc_Class_$_ ...
I have face this compile error out on Xcode 11.3 swift compile version > swift 5. ... Undefined symbols for architecture arm64: OBJCCLASSRNFIRMessaging...
Read more >
Error message when building upgraded framework target
Hello,. I have a workspace with a framework project from before Xcode 14. It links to four external frameworks(no cocoa pods or SPM)....
Read more >
CCS/TMS320F28335: recipe for target 'build ... - TI E2E
Hi,. When I tried to build a project that was working before, I got the following errors. Any idea why this error happens?...
Read more >
Build error: don't know how to make obj - CodeProject
I am not familiar with the build command but the usual problem in a case like this is that the build system has...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found