I’m following a tutorial in the book Creating iOS 5 Apps Develop and Design. I followed the directions as perfectly as I could but I keep getting this error.
2012-10-27 14:40:14.384 Health Beat[10608:1c0f] Foundation called
mkdir(“/Users/dblock/Library/Application Support/iPhone
Simulator/6.0/Applications/5B498D88-3062-4F89-90E2-4B3155C1E325/Library/Documentation/(A
Document Being Saved By Health Beat)”), it didn’t return 0, and errno
was set to 2.
I started this project and then updated to xcode 4.5.1 in the middle of it. I don’t know if there is some setting that may make this not work.
OSX 10.8.2
Xcode 4.5.1 (4G1004)
MBP 15″
The problem is that you used the constant
NSDocumentationDirectoryinstead of the constantNSDocumentDirectory. Probably you typedNSDocand then accepted the autocompletion, and Xcode autocompleted the wrong constant.To find it, choose Edit > Find > Find in Workspace, or press Command-Shift-F, and search for
NSDocumentationDirectory.