I am compiling a framework that depends on another framework. I have trouble when distributing my framework to other users that doesn't have necessarily the same versions than on my machine. It seems that xcode creates a "hard-link" to the last version installed on my system. "otool -L" on my framework reports a link to :
gecode.framework/Versions/19/gecode (compatibility version 19.0.0, current version 19.0.0)
A possible (and working) solution is to change the path of the linked framework with the install_name_tool command :
`install_name_tool -change gecode.framework/Versions/18/gecode` gecode.framework/Versions/Current/gecode my-constraints-framework
But is there a simple way to tell xcode to link directly against the "current" version of the framework during the build phase ?