Creating cocos2D project framework and accessing it in existing iOS application

Is there a way to create a framework of cocos2D project, so that I can add it in other existing iOS project.