You can legally use an iPhone spy app in most countries worldwide. It depends on your country. In the US, such apps are 100% legal to use. You may need permission from the person you’re monitoring first, though.