@ss12345, pynput seems to do a lot of OS-specific stuff, so not sure whether you can get it running on iOS. In other words, not sure if iOS is Darwin enough.

What is the exact trace you are getting? Have you tried just plonking the files from Github into your site-packages?