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,
- 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.
- go to the ‘build phases’ tab,
- open the ‘Link binary with Libraries’ section
- Use the + to add the framework you want
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.
Thanks for your comment. I have made the instructions clearer.