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

OSStatus error: [-25243] Security error has occurred. #105

Closed
xspyhack opened this issue Sep 8, 2015 · 7 comments
Closed

OSStatus error: [-25243] Security error has occurred. #105

xspyhack opened this issue Sep 8, 2015 · 7 comments

Comments

@xspyhack
Copy link

xspyhack commented Sep 8, 2015

I am trying to write to the keychain in iOS with accessGroup while testing on my device, I am getting the error OSStatus error: [-25243] Security error has occurred.

UICKeyChainStore *store = [UICKeyChainStore keyChainStoreWithService:@"xspyhack" accessGroup:@"39V4U5AVXX.com.company.xxx"];
 store[@"Host"] = @"text"
@codesourse
Copy link

I meet it too and i storing in UICKeyChainStore is lost;

OSStatus error: [-34018] Security error has occurred.
OSStatus error: [-34018] Security error has occurred.

@xinsight
Copy link

With Xcode 7.0 (iOS 8.4 simulator) +[UICKeyChainStore setString:forKey:] and +[UICKeyChainStore stringforKey:] fails with a different error code:
OSStatus error: [-25291] Security error has occurred.

http://www.osstatus.com/search/results?platform=all&framework=all&search=-25291
http://www.osstatus.com/search/results?platform=all&framework=all&search=-25243
http://www.osstatus.com/search/results?platform=all&framework=all&search=-34801 // not found?

Update: works as expected on iOS 9.0 simulator

@susieyy
Copy link

susieyy commented Sep 29, 2015

I meet it too and i storing in UICKeyChainStore is lost;

OSStatus error: [-34018] Security error has occurred.
OSStatus error: [-34018] Security error has occurred.

The same thing has occurred.

With Xcode6.4.0 and iOS8.4.1.

@wilferrel
Copy link

I get the same thing any resolution for this?

@maknz
Copy link

maknz commented Dec 8, 2015

From what I've read elsewhere it's an Apple bug which can occur when running the app with the Xcode debugger. A possible solution flying around is to reboot the device. I see this every now and again, pretty weird.

@cloudhm
Copy link

cloudhm commented Jan 23, 2016

I run the project in my iphone5c, and meet the same problem.

@j-fritsch
Copy link

Check out Apple's latest response to this bug:
https://forums.developer.apple.com/thread/4743

They seem to feel confident that this issue has been resolved in iOS 9.3.

Mar 22, 2016 3:28 AM

OK, here’s the latest. This is a complex problem with multiple possible causes:

  • Some instances of the problem are caused by incorrect app signing. You can easily distinguish this case because the problem is 100% reproducible.
  • Some instances of the problem are caused by a bug in how iOS supports app development (r. 23,991,853). Debugging this was complicated by the fact that another bug in the OS (r. 23,770,418) masked its effect, meaning the problem only cropped up when the device was under memory pressure.
    We believe these problems were resolved in iOS 9.3.
  • We suspect that there may be yet more causes of this problem.

So, if you see this problem on a user device (one that hasn’t been talked to by Xcode) that’s running iOS 9.3 or later, please do file a bug report about it. Try to include the device system log in your bug report (I realise that can be tricky when dealing with customer devices; one option is to ask the customer to install Apple Configurator, which lets them view the system log). And if you do file a bug, please post your bug number, just for the record.

On behalf of Apple I’d like to thank everyone for their efforts in helping to track down this rather horrid issue.

Share and Enjoy

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

8 participants