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.

iOS configuration using CocoaPods

See original GitHub issue

I just finished configuring this module for CocoaPods and I used a different but simpler approach. I hit several issues with the documented approach in the Readme. I am not sure if this is ‘the right’ way as it seems there are multiple ways to integrate a react-native module. Here are the steps I used with notes on the differences from the Readme:

  • Installed using npm install react-native-fcm --save.
  • After react-native link react-native-fcm, I reverted the changes made to the iOS project.
  • Added the following line to my Podfile: pod 'react-native-fcm', path: '../node_modules/react-native-fcm'.
  • I did not uncomment “use_frameworks!” line in the podfile. This caused multiple other modules to fail.
  • I called pod install --repo-update.
  • I followed the Shared Steps: https://github.com/evollu/react-native-fcm#shared-steps
  • I did not follow the Xcode post installation steps as they were not needed, except adding the following capabilities: Push Notifications and Background Modes > Remote notifications.

What do you think about this approach?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
geekvijaycommented, Apr 12, 2017

@ibratoev, i am using following react native version

"react": "^15.4.2",
"react-native": "^0.41.2",

and in your approach, when i did pod install --repo-update it installed following dependancy along with React (0.11.0)

Analyzing dependencies
Fetching podspec for `react-native-fcm` from `../node_modules/react-native-fcm`
Downloading dependencies
Installing Firebase (3.15.0)
Installing FirebaseAnalytics (3.7.0)
Installing FirebaseCore (3.5.2)
Installing FirebaseInstanceID (1.0.9)
Installing FirebaseMessaging (1.2.2)
Installing GoogleToolboxForMac (2.1.1)
Installing Protobuf (3.2.1)
Installing React (0.11.0)
Installing react-native-fcm (6.2.0)
Generating Pods project
Integrating client project

its is causing the problem. did you faced such problem problem ?

0reactions
evollucommented, May 3, 2017

use_frameworks! is remove in readme I don’t remember why Keychain Sharing is required. perhaps it is optional. Try and let me know

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using CocoaPods
Run $ pod install in your project directory. Open App.xcworkspace and build. <Creating a new Xcode project with CocoaPods. To create a new...
Read more >
How to Set Up Xcode Build Configurations
Cocoapods will create its own .xcconfig files located in the /Pods/Targets Support Files/<Project Name>/ folder of your workspace. One for each ...
Read more >
Your custom build configurations and Cocoapods - Dev Genius
Your custom build configurations and Cocoapods. For a new iOS project, it comes with 2 default build configurations Debug and Release but there ......
Read more >
How to add custom project configurations to Xcode when ...
[!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for...
Read more >
How To Manage Dependencies With CocoaPods - Cocoacasts
Installing CocoaPods · Project Setup · Setting Up the Podfile · Defining Dependencies · Installing Dependencies · Using the Dependencies · Updating Pods...
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