IOS App Today App Widget with keyfob access right, error on device like Simulator -25243 (errSecNoAccessForItem)

An app using Keychain Access has a bit and is working fine.

Added the Today widget and then added the right to the application group.

Everything seems to be fine, but now we get

CRASH: Couldn't add the Keychain Item Error
Domain=NSOSStatusErrorDomain Code=-25243
"The operation couldn’t be completed. (OSStatus error -25243.)".

      

When trying to use keychain.

This is on the DEVICE, not in the simulator.

Device usage due to testing with push notifications.

Have tried clearing, updating profiles, etc.

XCode 6.3.1 Mini iPad iOS 8.3

+3


source to share


1 answer


The error is -25243

often caused by attempting to access a keychain access group for which you do not have permissions because they may not be present in the Entitlements.plist file or in the provisioning profile.

So, you should do the following:

  • Make sure you have a permissions file in your project.
  • Try to disable / allow permissions.
  • Make sure your App ID has the required permissions and that your provisioning profiles that you use with your build scheme when launching the app on devices have been restored with the new permissions / rights.


If everything is ok after checking the above steps, my two cents will be that the provisioning profile that you use for your debugging scheme that you use to create your app to run on a device does not contain the required rights.

Edit: 4. According to the OP, one needs to also check that the value element for com.apple.security.application-groups

in the permissions file matches .

+1


source







All Articles