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

Cannot read property 'setCookie' of undefined #12

Open
vigneshprabhu20 opened this issue Dec 14, 2017 · 5 comments
Open

Cannot read property 'setCookie' of undefined #12

vigneshprabhu20 opened this issue Dec 14, 2017 · 5 comments

Comments

@vigneshprabhu20
Copy link

I get this Unhandled JS Exception: Cannot read property 'setCookie' of undefined after upgrading to
"react-native": "0.51.0",
"react-native-cookie": "^0.2.0",

screen shot 2017-12-14 at 1 07 26 pm

@alielmajdaoui
Copy link

  1. Close simulator
  2. link by: "react-native link react-native-cookie"
  3. run your app and the error should be gone!

@kevin074
Copy link

my build fails after doing "react-native link react-native-cookie", had to unlink to build successfully.

Any insight?

@vigneshprabhu20
Copy link
Author

@kevin074 Please share the error log from console so that I can help you to figure out the solution.

@princesust
Copy link

princesust commented Apr 23, 2018

I am getting a similar error. Below are the error log

** BUILD FAILED **

The following build commands failed:
ProcessInfoPlistFile /Users/ipv/workspace/cookieTestApp/ios/build/Build/Products/Debug-iphonesimulator/RNCookieManagerTests.xctest/Info.plist RNCookieManagerTests/Info.plist
(1 failure)

@BeHotSiii
Copy link

In our iOS project we are using different schemes. Linking the react-native-cookie project did only link the library for the main scheme so I had to add it to the orthers manually:

In Xcode, click on your project, select your target -> Build Phases-> link Binary With Libraries and add libRNCookieManager.a

That did the trick for us.

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

5 participants