question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exception '-[NSException localizedDescription]: unrecognized selector sent to instance 0x60000083bf00' was thrown while invoking set on target RNCookieManagerIOS

See original GitHub issue

Question

I have tried set() method from example and it gives me: “Exception ‘-[NSException localizedDescription]: unrecognized selector sent to instance 0x60000083bf00’ was thrown while invoking set on target RNCookieManagerIOS”

For example:

const newCookie = {
      name: 'myCookie',
      value: 'myValue',
      domain: 'some domain',
      path: '/',
      version: '1',
      expires: '2015-05-30T12:30:00.00-05:00',
    };
    const useWebKit = true;
    CookieManager.set('http://example.com', newCookie, useWebKit).then(
      (res) => {
        console.log('CookieManager.set from webkit-view =>', res);
      },
    );

image

I am using iOS ver 13.0. In package.json: “@react-native-community/cookies”: “^3.0.0”, “react-native”: “^0.62.2”,

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
VickyStashcommented, Jul 10, 2020

@focux I used it in a wrong way cause documentation wasn’t clear for me Try to do it this way and it’ll work, a cookie with name ‘test’ and value ‘test’ will be created

const newCookie = {
      name: 'test',
      value: 'test',
    };
    const useWebKit = true;
    CookieManager.set('http://example.com', newCookie, useWebKit).then(
      (res) => {
        console.log('CookieManager.set from webkit-view =>', res);
      },
    );
0reactions
safaiyehcommented, Jul 27, 2020

@oferRounds Check out this issue https://github.com/react-native-community/cookies/issues/59 let me know if the discussion there is similar to what you are experiencing

Read more comments on GitHub >

github_iconTop Results From Across the Web

unrecognized selector sent to instance ... was thrown while ...
I'm using a library in my react-native project where I'm getting this error enter image description here.
Read more >
“Unrecognized selector sent to ins… | Apple Developer Forums
I am trying to create a DropDownMenu class, but when I try to call addTarget to a UIButton this error comes up... 'unrecognized...
Read more >
Unrecognized Selector Sent To Instance Was Thrown While ...
localizedDescription ]: unrecognized selector sent to instance 0x60000083bf00' was thrown while invoking set on target RNCookieManagerIOS For exam.
Read more >
Fixing "Unrecognized Selector Sent To Instance" Error In Xcode
Since the selector is another name for the method, the error is basically saying that it doesn't recognize the function that you're trying...
Read more >
Ionic emulate ios - [__NSArrayM localizedDescription ...
However when I try to launch the iOS emulator with "ionic emulate … ... localizedDescription]: unrecognized selector sent to instance ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found