Luckily for Apple fans, iPhone viruses are extremely rare but not unheard of. Although generally safe, iPhones can become vulnerable to viruses when jailbroken. Jailbreaking an iPhone can be compared to unlocking it but with questionable legality.