How to build QTSqlCipher plugin for ios and mac?

I am able to build Sqlcipher for mac but how to build an plugin for QT out of the sqlcipher.dylib and sqlcipher.a ??