I'm new to using ocunit and to unit testing in general. (If there is a better place to ask this question , please tell me so.)
Part of my unit testing involves reading from the ABAddressBook. I can;t seem to find the right place to #import or the correct type of reference to the <AddressBook/AddressBook.h> header. I've got it in the .pch right now and it still raises this error when I run the tests Cmd-U.
Build target SuperContactsTests
Ld /Users/erik/Library/Developer/Xcode/DerivedData/SuperContacts-cdbathheyljueebikofkttovkdij/Build/Products/Debug/SuperContactsTests.octest/Contents/MacOS/SuperContactsTests normal x86_64 cd /Users/erik/Development/Production/SuperContacts setenv MACOSX_DEPLOYMENT_TARGET 10.8 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -L/Users/erik/Library/Developer/Xcode/DerivedData/SuperContacts-cdbathheyljueebikofkttovkdij/Build/Products/Debug -F/Users/erik/Library/Developer/Xcode/DerivedData/SuperContacts-cdbathheyljueebikofkttovkdij/Build/Products/Debug -F/Applications/Xcode.app/Contents/Developer/Library/Frameworks -filelist /Users/erik/Library/Developer/Xcode/DerivedData/SuperContacts-cdbathheyljueebikofkttovkdij/Build/Intermediates/SuperContacts.build/Debug/SuperContactsTests.build/Objects-normal/x86_64/SuperContactsTests.LinkFileList -mmacosx-version-min=10.8 -bundle_loader /Users/erik/Library/Developer/Xcode/DerivedData/SuperContacts-cdbathheyljueebikofkttovkdij/Build/Products/Debug/SuperContacts.app/Contents/MacOS/SuperContacts -fobjc-arc -fobjc-link-runtime -framework SenTestingKit -framework Cocoa -o /Users/erik/Library/Developer/Xcode/DerivedData/SuperContacts-cdbathheyljueebikofkttovkdij/Build/Products/Debug/SuperContactsTests.octest/Contents/MacOS/SuperContactsTests
Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_ABAddressBook", referenced from: objc-class-ref in SuperContactsTests.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
|