• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Link error in unit testing config ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Link error in unit testing config ?


  • Subject: Link error in unit testing config ?
  • From: Erik Stainsby <email@hidden>
  • Date: Thu, 01 Nov 2012 17:16:33 -0700


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)

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Link error in unit testing config ?
      • From: Damian Carrillo <email@hidden>
  • Prev by Date: Re: Docs in the Organizer question
  • Next by Date: Re: Link error in unit testing config ?
  • Previous by thread: Re: Making Polygons in XCode using Glut?
  • Next by thread: Re: Link error in unit testing config ?
  • Index(es):
    • Date
    • Thread