Because iOS viruses are still just hypothetical, your iPhone can't contract them. It's much more probable that you'll need to remove malware from your Mac, get rid of computer viruses, or eliminate Android malware. If your iPhone claims it has a virus, the problem is most likely something different.