Cannot build release builds with Xcode/SDL :(

I have made an application which uses SDL, SDL_mixer and SDL_image..
I have used the latest SDL-projecttemplates for Xcode (2.5)..

When i build the application using the Debug-build everything works like a charm, but when i change to Release-target I get lots of errors like this:

@executable_path/../Frameworks/SDL_mixer.framework/Versions/A/SDL_mixer expected to be defined in @executable_path/../Frameworks/SDL.framework/Versions/A/SDL

I am linking with all relevant frameworks and when i check the .app the files which the linker is complaining about is there allright.. what could this be? i have searched for this problem on various forums for about 5 hours now without finding anyone experiencing similar problems :/

sorry, im to much of a xcode newbie to be able how to figure out how to copy more than one line from the builderror-list so i took screenshots of both the complete errorlist (which is just a bunch of SDL_image and SDL_mixer functions which the linker does not find at the @executable_path although the actual frameworks are in place inside the .app generated) and the setup of my project..

i tried to compile a completely other project, an open source doom2-clone (http://www.odamex.net) which also uses SDL.framework, SDL_image.framework and SDL_mixer.framework with the xcode-project included in their sourcerelease and ended up with the same linker errors

i nm:ed the SDL.framework/SDL and SDL_mixer.framework/SDL_mixer inside the .APP and they contain all symbols LD claims as missing :S

I can make a releasebuild of projects not containing SDL_mixer and SDL_image and i can make debugbuilds of projects which contains those frameworks without any warnings whatsoever, but when going Release the linker go nuts. Can this have anything to do with the install_path which is used when building the SDL-frameworks?

The frameworks i am using now are the binary ones downloaded from http://www.libsdl.org, do I have to rebuild these from source in order to make them embeddable in my .APP?

I'm just guessing, but maybe the problem is that the SDL framework isn't installed, but the SDL_mixer framework is? It looks like there's an SDL_mixer framework in the 10.4u SDK which probably shouldn't be there, and no SDL framework to match.

Probably putting both in /Library/Frameworks would fix the issue, though it's not necessarily desirable.