First iOS program

When the code found on pg. 256 of the book is activated in my program, I encounter the following error. When I deactivate the code for saving or loading task data then the errors go away.

Undefined symbols for architecture i386:
"_BNRDocPath", referenced from:
-[BNRAppDelegate application:didFinishLaunchingWithOptions:] in BNRAppDelegate.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I have the same issue, unsolved…

Same issue encountered by me - did either of you figgure out reason why ?

No I haven’t.

You can get this type of error if your class’ .m file is not listed under the “Compile Sources” step of the “Build Phases” tab of your target. Normally Xcode does this for you, but sometimes it loses the plot and you need to add the .m file manually.

To do this:
TargetSettings -> Build Phases -> Compile Sources -> add your .m class ->Build and Run

Google is your friend :slight_smile: