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.

Readme instructions for iOS doesn't work

See original GitHub issue

The current installation instructions for iOS in the README suggests installing the package, then linking it with react-native link, and finally adding

pod 'react-native-intercom', :path => '../node_modules/react-native-intercom'

to your Cocoapods Podfile. This does not work. It leads to RCTBridgeModule.h not found errors on IntercomWrapper.h when building your project.

I’m not an expert in Cocoapods but I suspect the reason why the README suggests adding react-native-intercom to the Podfile is so that the podspec can add Intercom official pod as a dependency. However that same podspec also tells xcode to build all the iOS source code for this library.

In other words, the iOS source code for react-native-intercom is being added to the project twice, by react-native link and by Cocoapods. The cocoapods one fails because it can’t find the RCT* header files.

What worked for us on a blank new project was to:

  1. yarn add react-native-intercom
  2. react-native link react-native-intercom
  3. Add pod 'Intercom', '> 3' to your Podfile. This only adds the source code for the Intercom’s official ios library, and not the the code for react-native-intercom which is already linked to our project.

If one of the maintainers of the project could confirm these guesses are correct I’ll be happy to send a PR for the readme 😃.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:18 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
LeoLeBrascommented, Mar 12, 2018

@bsjaffer With https://github.com/tinycreative/react-native-intercom/pull/162, you can now place Intercom.framework in the following folder ~/Documents/Intercom. It works for me 😊

1reaction
bsjaffercommented, Mar 12, 2018

@javiercr @afilp anyone found the solution for this ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Readme markdown not rendering in Xcode - Apple Developer
In Xcode 11.1, I created a 'README.md' markdown file, but it always renders as its raw text (yet font size changes depending on...
Read more >
README.md · master · examples / iPhone App Development ...
For example, writing a program that uses several chunks of code from our books does not require permission. Answering a question by citing...
Read more >
How can I add a README.md file with Xcode? - Stack Overflow
From Xcode, select the project root in the Project Navigator. · Right click, and select Add Files to <Your Project>... · Choose README.md;...
Read more >
Add Firebase to your Apple project
Set up a physical Apple device or use a simulator to run your app. ... If you don't already have an Xcode project...
Read more >
react-native-screens - npm
Instructions on how to run Fabric Example within this repo can be found in the FabricExample README. Supported platforms. [x] iOS; [x] Android ......
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