Comments (39)
sorry guys,
has nothing to do with the package. The xcode was misconfigured.
I am closing the issue
from react-native-intercom.
Anyone who have succeeded installing on React Native >= 44?
from react-native-intercom.
same result after update @browniefed
from react-native-intercom.
I solved my problem by adding the following entries to Intercom Build Target > header search paths:
../../../ios/Pods/Headers/Public
../../../ios/Pods/Headers/Public/React (recursive)
from react-native-intercom.
I think the fix is to import headers like:
// import RCTEventEmitter.h
#if __has_include("RCTEventEmitter.h")
#import "RCTEventEmitter.h"
#elif __has_include(<React/RCTEventEmitter.h>)
#import <React/RCTEventEmitter.h>
#else
#import "React/RCTEventEmitter.h"
#endif
Otherwise, i'm not sure it's possible to remain backwards compatible with older version of React, and also support CocoaPods :/
from react-native-intercom.
I have run into the same issue as @mmckinley8 today, are there any news how to fix it?
Im using [email protected]
and [email protected]
Basically it says that RCTBridgeModue.h
is not found and also that RCTEventEmitter.h
is missing.
from react-native-intercom.
This issue is still happening:
"react-native": "0.45.1"
"react-native-intercom": "6.2.0"
Installation guide is not correct!
from react-native-intercom.
@StefanoCremona I can't remember. I have since then changed the way Intercom is integrated into the project. I am now using
pod 'Intercom', '> 3'
successfully instead
from react-native-intercom.
How did you resolve this @petromoldovan? I am facing the same issue
from react-native-intercom.
This may have been due to some recent changes in removing some of the header paths from the library. I will get a potential fix out for this later.
from react-native-intercom.
thanks @browniefed. Do you know of a timeline, or even better, can you provide the potential fix?
from react-native-intercom.
v5.3 has been published with the paths added back and compatibility with react-native .40 and before.
The previous version would only support .40
from react-native-intercom.
from react-native-intercom.
@browniefed terrific! I'll let you know if I have issues...I figured it was something related to 0.40.0 because of the new import syntax for iOS - reason I have not upgraded yet
from react-native-intercom.
Sorry, I'm not sure then. Maybe @petromoldovan can clarify.
I'm guessing it's a header search path issue.
from react-native-intercom.
I may also recommend install older versions. If you can find where the error occurs I can narrow it down.
from react-native-intercom.
@browniefed @mmckinley8 I am on RN 0.40.0.
the way I "solved" it was to start over. When installing the package I followed so many advices from different sources that I misconfigured something in the xcode. It would not build. So I pulled a project again and gave it fresh start in xcode.
I made it work like this:
1. npm install react-native-intercom --save
2. react-native link
3. Setup manually libs
https://github.com/intercom/intercom-ios
Add run Script like this:
http://runscriptbuildphase.com/
4. Add config
IOS
Add in AppDelegate.m
#import "Intercom/intercom.h"
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[Intercom setApiKey:@"YOUR_KEY" forAppId:@"YOU_APP_ID"];
}
5. Render
var Intercom = require('react-native-intercom');
Intercom.registerIdentifiedUser({ userId: 'bob' });
Intercom.displayMessageComposer();
hope this helps!
from react-native-intercom.
I created a fresh react-native project using 0.40.0, and still received errors when compiling iOS. I have already successfully integrated android. I am receiving the same error referenced in #58 but for iOS. I also attempted @petromoldovan steps, but no luck :(. @browniefed I have seen the updates and appreciate the effort. I will reattempt once RN 0.41.0 is released.
from react-native-intercom.
@mmckinley8 can you step backwards in version and find out if there is a version that works for you?
from react-native-intercom.
@browniefed I went all the way back to 4.1, this resulted in errors also. I believe it was a React dependency issue for 4.1. I also tried 4.2, 4.4, and 5.1.
from react-native-intercom.
I'll do my best to get something work and if I do I can record a screencast and let you know. Sorry, I'm just not sure what your issues are
from react-native-intercom.
No worries at all. Appreciate the responsiveness and effort.
from react-native-intercom.
Seeing similar issues here lottie-react-native/lottie-react-native#20
from react-native-intercom.
Ahhhhh I see, it's a potential cocoapods issue.
Thanks @lelandrichardson (totally forgot when linking to other topics it shows up on that thread haha)
from react-native-intercom.
@lelandrichardson I have tried your solution but still doesn't work. I'm on [email protected]
I'still getting the RCTEventEmitter not found error
from react-native-intercom.
I also tried
#if __has_include(<React/RCTAssert.h>) #import <React/RCTEventEmitter.h> #else // back compatibility for RN version < 0.40 #import "RCTEventEmitter.h" #endif
from react-native-intercom.
looking at my original comment, I think the ordering i typically use now is:
#if __has_include(<React/RCTBridgeModule.h>)
#import <React/RCTBridgeModule.h>
#elif __has_include("RCTBridgeModule.h")
#import "RCTBridgeModule.h"
#else
#import "React/RCTBridgeModule.h"
#endif
I'm not sure if that will make any difference for you or not...
from react-native-intercom.
from react-native-intercom.
I have similar problems.
"react-native": "0.44.2 ",
"react-native-intercom": "5.7.0", // use old one due to the other problem with Android SDK APIs version
Any ideas what we should do?
At first, I had manual installation and the "strip-frameworks" script failed (non-existed)
Then I added these in the podfile and updated:
pod 'Intercom'
pod 'react-native-intercom', :path => '../node_modules/react-native-intercom'
So, now, after the pod logic, I have the 'React/RCTEventEmitter.h' file not found issue.
from react-native-intercom.
@kwnccc try starting a new RN project and follow my instruction. I checked it few times already. It must be working.
from react-native-intercom.
Happening here too
[email protected]
[email protected]
It's working (without notifications) on Android but not on iOS.
from react-native-intercom.
Unable to build with [email protected] and [email protected]...
from react-native-intercom.
👍
from react-native-intercom.
👍
from react-native-intercom.
I am having the same issue, how can this be solved?
from react-native-intercom.
Same
from react-native-intercom.
I got it working, it looks like it was unable to find all needed React headers from the include dir
from react-native-intercom.
@maartenvandillen what did you add to you header search path to get it work?
Thank you
from react-native-intercom.
Anyone tried it with RN 0.61.5 & react-native-intercom 16.0.0? I'm stuck with this same error for 3 days.
from react-native-intercom.
Related Issues (20)
- Intercom causes crash in IOS CarPlay on launch HOT 1
- Remove bintray maven repository HOT 4
- Android - Intercom push notification doesn't shows app default notification icon, instead shows other icon. HOT 1
- Android build failing - Maven 502 error HOT 5
- Intercom 10 on iOS HOT 7
- 👉 Official Intercom React Native Library 👉 HOT 2
- React Native iOS - Tapping on Gif only shows image
- Where is the 22.0.1 mentioned here https://yarnpkg.com/package/react-native-intercom HOT 5
- package still uses jcenter() HOT 2
- 502 error during the build for android HOT 10
- Error after updating library "Execution failed for task ':app:checkDebugDuplicateClasses'."
- Task :react-native-intercom:mergeReleaseResources FAILED HOT 1
- Google android flexbox not resolving at build time HOT 3
- Getting something went wrong in react-native-intercom
- Is registerUnidentifiedUser() idempotent?
- [Android] RegisterIdentifiedUser promise does not return the resolved value on the first call.
- Execution failed for task ':intercom_intercom-react-native:verifyReleaseResources' HOT 1
- IOS: prod env is crashing app
- Missing Icon on top left corner On IOS device.
- Manifest merger failed with multiple errors HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-intercom.