Hi,
I'd like to build a cocoa framework which links with a dynamic c++ library.
To explore the intricacies of this task I wanted to create a very
simple test project.
I started a new xcode project based on the Cocoa Framework template.
I then created a new "BSD dynamic library" target to create my dylib.
I added this target as a build phase in the framework target.
that's for the project setting.
The dylib only contains a Greeter class that display a message in the
standard output.
The framework contains an objective-C++ class that has a Greeter
instance field and simply calls the C++ Greeter class method.
I added visibility pragma in the Greeter.h to export the class interface.
The dylib is correctly build into
<project_dir>/build/<active_build_config> next to the root directory of
the framework.
The build succeeds in Debug build config but fails in Release config
during the link phase because of undefined symbols.
Besides I'd like to copy the dylib inside the framework "product" to
ship it with the framework but I don't know how to do it.
Does anybody knows a clean project configuration ( layout and setting )
to do this or could provides tips to help
thanks in advance.
Brieuc