title: How to connect to postgresql from ios9
body: <p>I'm building iOS9.3 app with Swift.</p>
  
  <p>I'm trying to connect the PostgreSQL directly, and yes I know usually the most common approach is to create a web api as bridge between apps and server(like MSSQL,PGSQL,MYSQL...), and that is the easy/safe way to do it.</p>
  
  <p>But right now I need to do direct connection, and I already tried several solution as below, but so far there is no luck.
  Basically these are build from Obj-C(2010~14), and I also have to create Bridging-Header to connect Obj-C and Swift(That is not a problem). </p>
  
  <p>But I'm stuck here. :(</p>
  
  <p><a href="https://github.com/spacialdb/libpq.framework" rel="nofollow noreferrer" title="tooltip">libpq.framework</a>, PGSQLTouch , PGSQLKit-iOS-9.1.1</p>
  
  <p>If I just used "libpq", the error is "libpq-fe.h' file not found".</p>
  
  <p>If I used PGSQLKit the error will be "No such module 'PGClientKit_ios'" event I setup the Build Phases, Framework Search Paths.</p>
  
  <p>have any ideas?</p>
  
  <p>PGClientKit_ios's git>>> "<a href="https://github.com/djthorpe/postgresql-kit" rel="nofollow noreferrer">https://github.com/djthorpe/postgresql-kit</a>"</p>
  
  <p><a href="https://i.stack.imgur.com/u4hJz.png" rel="nofollow noreferrer">Objective-C Bridging Header</a></p>