analytics-react-native: RNAnalytics not found
I am consistently getting a @segment/analytics-react-native-mixpanel/ios/main.m:10:9: 'RNAnalytics/RNAnalytics.h' file not found
when adding the mixpanel integration. I am currently integratitng the analytics-react-native library without cocoapods.
I have followed the steps in the readme and #17, running the project without the mixpanel integration will correctly send data to segment but not to mixpanel.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 10
- Comments: 20 (1 by maintainers)
Commits related to this issue
- fix(context): fix for issue RNAnalytics not found #30 — committed to emadgit/analytics-react-native by deleted user 5 years ago
- fix(context): fix for issue RNAnalytics not found #30 — committed to emadgit/analytics-react-native by deleted user 5 years ago
- Fix for RNAnalytics not found issue (#30) (#116) * fix(context): fix for issue RNAnalytics not found #30 * docs(context): revert readme auto changes * docs(context): revert one more readme aut... — committed to segmentio/analytics-react-native by emadgit 4 years ago
I had the same error and I discovered that I had one line missing from Podfile:
pod 'RNAnalytics', :path => '../node_modules/@segment/analytics-react-native'
Hope that helps someone.Segment Integrations only work for CocoaPods installation.
There might be a hack you can do to get them to work for your specific setup, but out of the box manual or Carthage installations are going to fail.
Disappointed in this product and the technical decisions to only support a 3rd party dependency manager and not the default manual installation. If you’re from the Segment tech team and made this decision or know why this decision was made I would love to hear some the reasoning.
Until then Segment is not in a state where I’d recommend it to anyone. Disappointing tech decisions usually lead to other disappointing tech decisions.
+1 for Amplitude, tried a bunch of the suggested fixes, nothing seems to be working.
With the firebase and mixpanel integration for me adding
s.dependency 'RNAnalytics'
to the integration’s podspec file and addingpod 'RNAnalytics', :path => '../node_modules/@segment/analytics-react-native-firebase'
worked for me.@builtbyproxy no worries! thanks for sharing! hopefully it’ll help others who come across this.