matthiasplappert / Secure-NSUserDefaults

User defaults that cannot be modified or shared between devices.
203 stars 14 forks source link

Crashing on setSecret #2

Closed scruff311 closed 11 years ago

scruff311 commented 11 years ago

Hey,

Right off the bat on the first line of didFinishLaunchingWithOptions in my AppDelegate, I am trying to set the secret like so:

[NSUserDefaults setSecret:@"test"];

but I am getting a crash, "Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[NSUserDefaults setSecret:]: unrecognized selector sent to class 0x1dbb830' "

Not sure why. It appears that the compiler is trying to find the setSecret method in the default NSUserDefaults. I have indeed imported the appropriate header file. Any ideas? I am using iOS6.

scruff311 commented 11 years ago

Turns out the files were in the project, but not in the right folder.