iOS configuration using CocoaPods
See original GitHub issueI 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:
- Created 6 years ago
- Comments:5 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ibratoev, i am using following react native version
and in your approach, when i did
pod install --repo-update
it installed following dependancy along with React (0.11.0)its is causing the problem. did you faced such problem problem ?
use_frameworks! is remove in readme I don’t remember why Keychain Sharing is required. perhaps it is optional. Try and let me know