Only reason apples didn't get viruses is because barely anyone used it so wasn't worth the effort due to minimal impact.
Now that it is more mainstream,... well, hackers are pretty smart cookies, they will make viruses no matter what anti-virus system is out there.
Smart phones, tablets...