What I did was first downloded the project https://github.com/x2on/OpenSSL-for-iPhone
These project was not built when Xcode 5 was in different location from default location, so for these project to build it has xcode 5 has to be in default location. Then I ran the file build-libssl.sh in terminal. It runs successfully only when xcode 5 is in default location. When the script runs successfully then libssl.a and libcrypto.a files are made. I directly included them in frameworks section of project. I removed the older sqlcipher and openssl projects and only included the files in 'include' directory of downloaded project and in sqlcipher sqlite3.c,sqlite3.h, and sqlite3ext.h files. Now there was no need of that two projects, and it built successfully in xcode 5 project.