- 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
.xcworkspace file), go to the project navigator -> your project's name -> right click your project's name -> Add Files to [your project's name].
- Go to
node_modules/react-native-analytics/ios -> and choose the RNAnalytics folder.
- Make sure you select
RNSegmentIOAnalytics.h and RNSegmentIOAnalytics.h files and add them.
It fixed the issue....