Search code examples
architecturelinkerxcode3.2conditional-compilation

XCode 3 : linking different libraries depending on architecture (cpu type)


EDIT: This question is probably old it is related to xcode 3.

I'm developing an iPhone app which needed voip support so i added the ARM version of pjsip libraries. But if I'm using the iPhone simulator i want to link the i386 version of the libraries. How can i do that?


Solution

  • I think I solved it at last. You need to go to your project setting and select the build tab. After that select a setting that you want to be conditional for example Other Linker Flags and from the little drop-down thingy at the bottom left select "Add build setting condition". Do this as many times as necessary.

    Here is an image to explain it.