My issue is that the Log4Cocoa framework isn't being found during runtime. My goal is to package the log4cocoa framework with my application (e.g MyApp.app/Frameworks/log4Coca). The steps i've tried to do this are:
Create a Frameworks directory in the XCode project's directory and place the log4Coca Framework in it.
Click on the Linked Frameworks directory in the XCode IDE Add-Existing Frameworks->Add Other...
Navigate to the log4Cocoa instance I created in [xcode project root dir]/Frameworks/
Create a new Copy Files Build Phase to the build target, set it to Frameworks.
Drag the log4Cocoa reference from Linked Frameworks dir to the new Copy build phase.
All is well during build time, but I get a BAD ACCESS error when debugging. The error will go away if I install log4Cocoa in the usual framework directories on a specific system (~/Library/Frameworks, for example).
What am I missing?
Thanks for your help and for providing this framework!
To run as an embedded framework, the app has to know where the framework will be. See http://www.cocoadev.com/index.pl?MoreOnEmbeddingFrameworks or search for other examples of how to do this, Specifically, you need to modify @executable_path/../Frameworks . See also http://lists.apple.com/archives/xcode-users/2007/Jul/msg00487.html .