react-native-analytics
react-native-analytics copied to clipboard
IOS setup issue
- In the docs, under iOS Installation the fifth point is like this: Make sure your project links to libAnalytics.a (The libraries should be listed under "Build Phases -> Link Binary With Libraries". Should happen automatically if you use cocoapods).
Issue is: cant find libAnalytics.a file instead found libAnalytics-iOS.a, libAnalytics-tvOS.a files. Also tried adding these files (libAnalytics-iOS.a, libAnalytics-tvOS.a) but it is still resulting in error: NativeRNSegmentIOAnalytics is undefined.
- Tried to modify 2,3,4 steps like this:
- Inside Xcode (make sure you've opened your
.xcworkspacefile), go to the project navigator -> your project's name -> right clickyour project's name->Add Files to [your project's name]. - Go to
node_modules/react-native-analytics/ios-> and choose theRNAnalyticsfolder. - Make sure you select
RNSegmentIOAnalytics.handRNSegmentIOAnalytics.hfiles and add them.
It fixed the issue....
I have done the same things which you have mentioned above but still facing issue undefined is not an object (evaluating 'NativeRNSegmentIOAnalytics.setup')
This worked for me when I added just the files RNSegmentIOAnalytics.h and RNSegmentIOAnalytics.m to libraries, but NOT the RNAnalytics folder.