Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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: http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.