iOS App Today Widget App Group Entitlement with Keychain Sharing Entitlement, Error on Device like Simulator -25243 (errSecNoAccessForItem) -


have application has been using keychain access bit , working fine.

added today widget , added app group entitlement.

all seems good, getting

crash: couldn't add keychain item error domain=nsosstatuserrordomain code=-25243 "the operation couldn’t completed. (osstatus error -25243.)". 

when trying use keychain.

this on device , not in simulator.

using device because of testing push notifications.

have tried cleaning, updating profiles, etc.

xcode 6.3.1 mini ipad ios 8.3

the error -25243 caused trying access keychain access group don't have permissions because might missing entitlements.plist file or provisioning profile.

so should following:

  1. check have entitlements file in project.
  2. try disabling/enabling entitlements.
  3. check app id has required permissions enabled , provisioning profile(s) use build schema when run app on devices have been regenerated new permissions/entitlements.

if ok after checking above steps, 2 cents provisioning profile use debug schema use build app run on device not contain required entitlements.

edit: 4. according op, 1 should check if value item com.apple.security.application-groups in entitlements file matches.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -