First, download the stable version libsodium https://download.libsodium.org/libsodium/releases/ download complete decompression can
Second, the terminal cd into the directory, execute ./dist-build/ios.sh script. After the execution, it will generate libsodium-ios directory in your home directory.
Third, import libsodium-ios into the project can be. Android, Mac OX Similarly, the implementation of the iOS.sh script can be changed to perform the appropriate platform. dist-build directory has written the script.
In this simple three-step, step on a lot of pits, waste some time. Here the record about.