Rework of original igetnonce whith a greate thanks for @tihmstar on Swift
It's my first Swift project created for education purpose and fun))
Project contains all wrappers for required C libs, so may be also used as trampoline for another works
Before build project you need to install some dependencies:
brew install libimobiledevice
brew install openssl
brew install libirecovery
And if you want to build it in Xcode, also add symlinks for openssl:
ln `brew --prefix openssl`/lib/pkgconfig/openssl.pc /usr/local/lib/pkgconfig/openssl.pc
ln `brew --prefix openssl`/lib/pkgconfig/libcrypto.pc /usr/local/lib/pkgconfig/libcrypto.pc
ln `brew --prefix openssl`/lib/pkgconfig/libssl.pc /usr/local/lib/pkgconfig/libssl.pc
Or for shell building just specify PKG_CONFIG_PATH env
PKG_CONFIG_PATH=`brew --prefix openssl`/lib/pkgconfig swift build