I'm having a really hard time trying to make two separate projects, one is a dylib, and the other is an application that depends on the dylib. Here's what I have done.
Created a cocoa framework (for my dylib).
Created a cocoa application (which depends on the dylib).
Added a new target of type framework to the dylib project.
In the "Copy Headers" build phase of the framework target, I added all the header files.
The dylib builds successfully and under Products, the "My.framework" font turns black.
I then drag the "Products/My.frameworks" target of the dylib project into "Linked Frameworks" group of the application project.
I drag the "Linked Frameworks/My.framework" file from the app project into the "Copy Files" target of same project, rename "Copy Files" to "Copy Frameworks".
I click "Build and Run" from app project and get these errors.
ld: framework not found My
collect2: ld returned 1 exit status
Command /Developer/usr/bin/gcc-4.2 failed with exit code 1
Any help much appreciated.