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 fails in newly generated project

See original GitHub issue

"react-native": "0.50.3" After running: react-native link react-native-fcm My pod file contains this lines:

  pod 'Firebase/Messaging'
  pod 'react-native-fcm', :path => '../node_modules/react-native-fcm'

when trying to pod install:

Installing React (0.11.0)
Using nanopb (0.3.8)
Installing react-native-fcm (10.0.3)
[!] React has been deprecated

then when Im building IOS

In file included from /Users/alex/dev/tandem/node_modules/react-native-fcm/ios/RNFIRMessaging.m:1:
/Users/alex/dev/tandem/node_modules/react-native-fcm/ios/RNFIRMessaging.h:7:9: fatal error: 'React/RCTEventEmitter.h' file not found
#import <React/RCTEventEmitter.h>

if I remove pod 'react-native-fcm', :path => '../node_modules/react-native-fcm'

Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_RNFIRMessaging", referenced from:
      objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture x86_64

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:9
  • Comments:14 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
veedeocommented, Nov 25, 2017

I tried manually linking React and yoga

  pod "yoga", :path => "../node_modules/react-native/ReactCommon/yoga"  
  pod 'React', :path => '../node_modules/react-native'
  pod 'react-native-fcm', :path => '../node_modules/react-native-fcm'

and looks like it solved the build problem, now have to check if it also works EDIT: @evollu Can you please look at this issue

3reactions
kyleminorscommented, Dec 7, 2017

I ran npm install on my whole project again and link worked after that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build fails when referenced project contains generated code
When building a project that contains reference to another project which includes dynamically generated code, the build fails.
Read more >
Xcode 13 build failure with projects generated with the legacy ...
When generating Xcode projects with cmake it is possible to specify the legacy build system via the -T buildsystem=1 option. But cmake currently ......
Read more >
How to find the reason for a failed Build without any error or ...
To ensure that the Output window appears each time you do a build, you can go to Tools → Options → Projects and...
Read more >
Build fails at checkout repo from a different project in the same ...
CI Build fails at checkout repo from a different project in the same organization, Let us say MyOrganisation has two projects, MyProject1 &...
Read more >
"Error building project: The build hook failed with status code 1".
This article talks about the causes and solutions for the Adobe Commerce on cloud infrastructure issue, where the build phase of the deployment ......
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