I\'m trying to load a file into a string. Here is the code I\'m using:
NSError *error = nil; NSString *fullPath = [[NSBundle mainBundle] pathForResource:filename
I ran into the same error.
When I played around a bit, it appeared that I was not including the file in copy bundle resources of the target.
I did that and it worked fine.
But, have to say -- error is quite misleading for such a simple cause. Just a bad guess from Xcode