Forum Archive

Module not found when use Xcode

massoud

I installed "cryptography" module by StaSh/pip. When I use "import cryptography" in console, the module is known (installed in site-packages-3) but when I use Xcode and install the App in iPhone the module canot be found. It is also ok if I test in a simulator. but module cannot be found in iPhone device

JonB

Cryptography cannot be installed on iOS, as it requires c code. Pycrypt comes preinstalled iirc, but doesn't support everything cryptography can do. Depending on what you need to do, there may be some pure python alternatives.