First iOS program


#1

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)


#2

I have the same issue, unsolved…


#3

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


#4

No I haven’t.


#5

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: