Setting up Objective-C on Ubuntu

This tutorial will explain how to set up environment for successful building Objective-C applications on Ubuntu for total beginners (without Apple machine) :).

It’s based on this step by step wizard: Getting started with Objective C on Ubuntu.

We can’t use default Cocoa implementation from iOS, instead we have another implementation suitable for Linux: GNUstep.

Needed steps:

  1. Install headers for gcc:
    sudo apt-get -y install build-essential
  2. Install GNUStep:
    sudo apt-get install gobjc gnustep gnustep-make gnustep-common
  3. Add next line to .bashrc
    #GNUSTEP Environment vars
    . /usr/share/GNUstep/Makefiles/

And you are good to go. How to create make file and Hello World follow this link: Getting started with Objective C on Ubuntu.

Some useful links: