How do I add an existing framework to my iOS project in Xcode4 ?

As a iOS developer, when I migrated to XCode4, it took me a while to know how one can add an existing framework to his/her Xcode iOS project. So, I thought of sharing it with others who may be facing similar problem:

select your project,

  1. select the project on left. You need to go the the panel on the left and select the the topmost item which is your project. This will give you interface that allows you to find a Build Phases tab.
  2. go to the ‘build phases’ tab,
  3. open the ‘Link binary with Libraries’ section
  4. Use the + to add the framework you want
    • dwaring
    • October 25th, 2011

    First, thank you for the solution. It boggles my mind that the SDK cant do this for us. I am just flabbergasted.

    I would just like to make something clearer. Instruction 1 says select the project on the left. This was unclear to me and might be to others. You need to go the the panel on the left and select the the topmost item which is your project. This will give you interface that allows you to find a Build Phases tab. After that it is simple

    But what in the heck is going on here. Why can I not just have that framework imported or somewhere in the UI where I import the library can it not ask me to find it.

  1. Thanks for your comment. I have made the instructions clearer.

  1. No trackbacks yet.