Tip to Help Debugging - "Could not save any of the BNRItems"


This is just a helper for those who are debugging issues and could not save the state:

I used the autocomplete for the following method in BNRItemStore.m:

- (NSString *)itemArchivePath
    NSArray *documentDirectories = NSSearchPathForDirectoriesInDomains(NSDocumentationDirectory, NSUserDomainMask, YES);

It’s NOT NSDocumentationDirectory!



  • (NSString *)itemArchivePath
    NSArray *documentDirectories = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);[/code]


I registered just to say thank you. You saved me a lot of debugging time.



I registered to say thanks, just like the previous reply. I’ve been having a real hard time with this problem. Funny how your eye can skip over these things.



Ditto for me,

Thank you very much


I just wanted to be another person thanking you for this!


YES! Thank you! - For those of you catching up. There’s two places this can happen that I see (so far) pg 283 BNRItemStore.m AND pg 289 BNRImageStore.m


I’m a seasoned developer (C/C++/PHP/etc) and learning iOS and had this very same issue. I looked at everything, refactored and cleaned up, and of course it was the simplest thing I overlooked each of those times…Thank you! :smiley:

Funny how we wholly trust the hand-holding “features” in our popular IDE’s…


Thanks for the info. Saved me a whole bunch of time.


Same here. Many thanks.


Me too! thanks!!


Thanks for taking the time to post! Would have been searching for an hour!


Thank you!
I made this mistake, too!


Thank you! :slight_smile:


thank you!