Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOS setup issue #17

Open
PavanGangireddy opened this issue May 16, 2018 · 2 comments
Open

IOS setup issue #17

PavanGangireddy opened this issue May 16, 2018 · 2 comments

Comments

@PavanGangireddy
Copy link

PavanGangireddy commented May 16, 2018

  1. 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.

  1. 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....

@rajatpillai
Copy link

I have done the same things which you have mentioned above but still facing issue undefined is not an object (evaluating 'NativeRNSegmentIOAnalytics.setup')

@angineering
Copy link

This worked for me when I added just the files RNSegmentIOAnalytics.h and RNSegmentIOAnalytics.m to libraries, but NOT the RNAnalytics folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants