I\'m building an iPhone app that has to run on both the simulator and the device. However I\'m using an externally compiled library that has one version for the simulator an
The recommended way to do this is to not add the library to your project and target, but instead to set the Other Linker Flags to include separate, direct references to the link library per configuration.
For Debug:
OTHER_LINKER_FLAGS = -l/Path/To/My/Debug/Library.dylib
For Release
OTHER_LINKER_FLAGS = -l/Path/To/My/Release/Library.dylib
You can of course use references to other build settings to make these paths relative to something durable, or use a Source Tree to an external source tree.