Spyware can be loaded onto your iPhone remotely via a malicious app, or physically if someone gains access to your phone. Use long and unique passwords for all your accounts and two-factor authentication to secure your personal data.