I’m following this chapter and I’m up to the point where we have added the code to HomepwnerAppDelegate.m to save the data in applicationDidEnterBackground: and applicationWillTerminate:, but when I build and run I get a link error.
[quote]Undefined symbols for architecture armv7:
"_pathInDocumentDirectory", referenced from:
-[PossessionStore possessionArchivePath] in PossessionStore.o
ld: symbol(s) not found for architecture armv7
collect2: ld returned 1 exit status
I’m trying to run it on my device, an iPhone 4 running iOS 5. I’m also using Xcode 4.2.
Because of the template differences I took the initial Homepwner code from your supplied files in the first chapter that referenced it, and have manually typed everything since then.
I’m guessing that this is just some compatibility issue between iOS 4.2 and 5, or with the default settings of Xcode 4.2, but if you have any ideas that might solve this it would be appreciated.