One solution is that if your dependent projects have the same configuration names, such as the main project (for example, Foo, Bar, Baz), then Xcode will match them and build using the same configuration.
So, if you need a debug build instead of a release build, you can duplicate the Debug configuration and call it Foo. If you really do not need both options, you can rename the configuration rather than duplicate it, but with example names like Foo, I'm not sure what would make sense for your situation.
However, the title mentions Xcode 4. The technique described above is what I used in Xcode 3; I have not figured out how to manage these configurations yet in Xcode 4. I'm trying to figure it out now.
Update. To manage configurations in Xcode 4, you can click the name of your project or dependent project at the top of the project navigator (where all your files / folders are listed on the left). In the main window, select "Information" (on another tab "Build Settings"). Then you will see the “Configuration” section, in which you can add / delete / rename your configurations.
Ryan H.
source share