Step1:Download Cocos2dx Library
Download Link → http://www.cocos2d-x.org/filedown/cocos2d-x-2.2.6.zip
Step2:Unzip cocos2d-x-2.2.6.zip And Open Directory cocos2d-x-2.2.6
Step3:Create New Directory “projects” Under cocos2d-x-2.2.6 Main Directory
Step4:Put Given Source Code Under “projects ” Directory
Step5:Open Your Source Code Folder Under That “proj.ios” Directory Is There
Step6 : Open YourAppName..xcodeproj