How do i install cocos2d-x 2.2.3 or 3.0rc0 into Xcode?

I’m having trouble installing either of these into Xcode
i have looked through of the tutorials on the net and but they don’t seem to be helping me.

I’m at the stage where Im meant to enter the file into the terminal but not sure how to do it
any help would be much appreciated

You dont install templates into Xcode anymore, please use the create_project script or the cocos console

@tehshredder

please go to the wiki page: http://cocos2d-x.org/wiki/How_to_Start_A_New_Cocos2D-X_Game

sorry this is prob a dumb question but where is the cocos console located in 3.0?

$ROOT/tools/cocos2d-console/bin