See above image. Image containing error i got during building cocos2d x application on device as well as simulator. I downloaded code from this link
Someone told me i have to install cocos2d x library in my machine, but my doubt here is if we successfully ran cocos2d game application in simulator as well as in device just including cocos2d library in resource folder .. it should be same happen with cocos2d x library???. how i build above project in my device simulator??
You probably have old cocos-2d project template that has "gcc 4.2" compiler in settings, while new xcode does not support it anymore.
To fix that go to the project build settings, find "compiler" setting and choose any option that's present there