I am sure that this was asked earlier, but I always hit my head against a brick wall, trying to figure out how to achieve this using Xcode 4.
I have a lib that was distributed by a third party. In fact, they send 2 different versions, one for use in the simulator, and one for use with the actual device.
I would like to know what is the recommended way to handle such situations in Xcode 4; in Xcode 3, I could just specify a new target. I want to avoid creating a live binary file using lipo containing both libraries, but if this is the only possible option available to me, then so be it.
Ideally, what I would like to do is change the library search path based on the current device compiled by the project, for example:
Simulator: /path/to/simulator/lib.a
Device / path / to / device / lib.a
If I could automate the process, therefore, as soon as I installed it, it was transparent, the better.
Thanks so much for taking the time to read this.
source share