SenTests, Frameworks and .dylibs
SenTests, Frameworks and .dylibs
- Subject: SenTests, Frameworks and .dylibs
- From: Alan Shouls <email@hidden>
- Date: Thu, 7 Aug 2008 14:47:01 +0100
Hi
I am trying to add some SenTests to a cocoa framework I am working on
and have some problems with the tests running - when my test bundle
loads it is unable to find a needed .dylib, and the test fails before
it gets to any of my assertions.
I have read Chris Hanson's blog, and had a "good old go" following the
advice there, and read through the Apple "XCode Unit testing Guide" and
I guess I have just missed something.
This is what I have done.
- I have added a Unit Test target to my project. I have checked that
this works with a simple test.
- I then added the Framework that the target tests to the link phase
- added the .dylib (one of our own) to the link phase
- added a copy files phase to put the .dylib next to the 'Test'
executable in the test bundle.
- added a copy files phase so that the Framework is in the frameworks
folder of the text bundle.
When I run I get an error that "@ececutable_path/MyLib.dylib" was not
loaded
I have tried various settings for the environment variables but to no
avail. Any insight greatly appreciated.
Best regards
Alan
_______________________________________________
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