iOS does not have a python interpreter. thats the reason it is not being able to understand any pyhtonkit api. so the way this works for MacOS it wont work for iOS.
Pythonkit does not support iOS for the same reason and has not been tested for the same.