Updating a Cocos2D-iPhone application to a 64-bit architecture

Apple recently stopped accepting 32-bit apps. Here's how to update your Cocos2D-iPhone app to a 64-bit architecture.