• 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
Problem building when adding 3rd party library to a Unit Test
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem building when adding 3rd party library to a Unit Test


  • Subject: Problem building when adding 3rd party library to a Unit Test
  • From: David Kennedy <email@hidden>
  • Date: Mon, 27 Feb 2006 20:07:09 +0000

Hi,

I'm new to Unit Testing, but managed to get a trivial example working buy following the Examples and Guidelines;
here: <http://developer.apple.com/tools/unittest.html>
and here: <http://developer.apple.com/documentation/DeveloperTools/ Conceptual/UnitTesting/Articles/UTGuidelines.html>


The problem is when I tried to test a class that uses a third party library (AGRegex), I get the following build error:

/usr/bin/ld: Undefined symbols:
.objc_class_name_ZNRawHTTPExtractor
collect2: ld returned 1 exit status

where ZNRawHTTPExtractor is the class I'm attempting to Unit Test.

To add the AGRegex library to the Unit Test Target, I did the following:

1) Made sure that AGRegex.framework was in the Linked Frameworks group
2) Created a new copy files build phase and placed it under the Copy Bundle Resources build phase
3) Changed the destination of the new build phase to "Frameworks"
4) Added AGRegex.framework to the build phase


I also tried adding " -framework AGRegex" to OTHER_LDFLAGS, but this made no difference to the build failing.

Can anyone point me in the right direction?

Thanks in advance,
Dave

------
David Kennedy (http://www.zenopolis.com)


_______________________________________________ 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
  • Prev by Date: WakeOnLan + Xcode2.2 = beachball?
  • Next by Date: Re: Jump to Definitions
  • Previous by thread: Re: clean samples of Xcode hang (was WakeOnLan + Xcode2.2 = beachball?)
  • Next by thread: force to use framework in a specific path
  • Index(es):
    • Date
    • Thread