Most spy apps require jailbreaking firstly. However, not all iPhones can be jailbroken. You need to find a feasible way of jailbreaking and check the compatibility firstly. After jailbreaking, you can download Cydia, find a spy app named iKeyMonitor from Big Boss, and download it. You can register a permanent free account from its official website and then start the trial version usage.