Sorry about the problem you encountered with uploading an attachment.
With regards to your problem, it should just be a matter of doing a Clean from the Build menu in XCode. For some reason, XCode had built an x86_64 object file from main.cpp, but wasn't rebuilding it for i386.
If you are still having problems, let me know.