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.

Error Domain=NSOSStatusErrorDomain Code=-25300 "no matching items found" UserInfo={NSDescription=no matching items found}

See original GitHub issue

My code:

    try {
      Keychain.requestSharedWebCredentials()
    } catch (e) {
      console.log(e);
    }

Xcode:

screen shot 2017-03-06 at 16 18 35 screen shot 2017-03-06 at 16 19 13

My apple association file hosted under my www.myCorrectDomain.com/apple-app-association-file:

{
    "applinks": {
        "apps": [],
        "details": [
            {
                "appID": "FDM2J9GHFZ.com.myCorrectDomain.app.ios",
                "paths": [ 
                    "*"
                ]
            }
        ]
    },
    "webcredentials": {
        "apps": [ "FDM2J9GHFZ.com.myCorrectDomain.app.ios"]
    }
}

Keep in mind that the myCorrectDomain is virtual, in reality I’m using another domain, I’m just using this for the current example, but in my set up it’s all under the right domain.

The error I receive is: Error Domain=NSOSStatusErrorDomain Code=-25300 "no matching items found" UserInfo={NSDescription=no matching items found}

Issue Analytics

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

github_iconTop GitHub Comments

4reactions
SudoPlzcommented, Jan 8, 2018

I don’t even remember why I opened that issue, but it’s fixed now, thanks 😃 you’re the boss.

0reactions
westerlycommented, Mar 31, 2020

@westerly I don’t even remember but the Code=-25300 "no matching items found" error simply means it didn’t find any shared credentials.

To make sure you properly catch this error though don’t use a try catch block, instead do Keychain.requestSharedWebCredentials().catch(.......)

Thanks much!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Keychain Error -25300 | Apple Developer Forums
When I try to retreive app credentails during a app launch , the keychain fails with following, Does not happen always but enough...
Read more >
Keychain error -25300 (errSecItemNotFound) when disabling ...
This means that the item can only be added when there is a passcode ... SecItemCopyMatching with queries containing match limit other than ......
Read more >
Re: Error submitting enrollment status to the JSS
Error Domain =com.jamf.jamfsecurity.error Code=-25300 - 187010. ... The specified item could not be found in the keychain.
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