Xod wont upload to arduino mega?

A time enough to download ~100 MB. It could happen you’re stuck after the first interrupt, so you’ll have to clean the incomplete download manually or install the toolchain by hand. See Can I manualy install the toolchain? for more details.