3

Some months ago I started developing on the PostgreSQL source code on a Windows machine. Developing on Windows worked like charm, especially thanks to Visual Studio.

Since I got a new Mac, I wanted to use XCode for development. However, I don't get it running with PostgreSQL:

How do I create an appropriate project file for developing XCode on Mac and also set all targets appropriately?

1 Answer 1

2

There are many different uses for PostgreSQL in XCode

1) One is to link library and start writing apps around PostgreSQL library:

http://macbug.org/macosxsample/postgresql

2) Another way would be to create iOS Apps with PostgreSQLKit:

http://www.postgresqlformac.com/lists/downloads/pgsqlkit-2/

3) Lastly various other assorted projects (including embedding the server):

http://cocoadev.com/PostgreSQL

23 Apr 2017: The newest guide is available here: http://druware.tumblr.com/post/112163075395/getting-started-with-pgsqlkit-and-swift

Sign up to request clarification or add additional context in comments.

4 Comments

the second link is not working. Is there any place I candowload it. I'm trying to connect my exsting postgresql database to swift
@toing_toing the code for PostgreSQLKit is still Objective-C, but with iSwift, you can convert it hopefully: iswift.org Here is the source to PostgreSQLKit: github.com/djthorpe/postgresql-kit
2017 and none of the links above are viable any more. :(
@OwenGodfrey: I updated the answer to match the current up-to-date systems.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.