Search code examples
iphoneobjective-cxcode4ios5

err == errSecAuthFailed works fine on simulator but fails on device


I try to use

err == errSecAuthFailed

like here link

This works fine on simulator but fails on ios Device.. does someone know why?? As you can see on the link Apple also uses this. When I try this on device I get

Use of undeclared identifier 'errSecAuthFailed'

THX!


Solution

  • Try adding #import <Security/SecBase.h> on top of the file where the error occurs.