How do I write and compile Objective-C code?

前端 未结 4 1942
忘了有多久
忘了有多久 2021-02-13 03:58

How do I write and compile Objective-C code in Linux?

I heard about Clang, but I couldn\'t find any example/tutorial about Clang/LLVM/Objective-C.

4条回答
  •  执笔经年
    2021-02-13 04:22

    Just run the following script shown on this page:

    https://gist.github.com/nicerobot/5652802

    Pay attention: During the first compiling process you will get an error. Solution is just to recompile it... It works !!! Here is the blog entry from the step by step installation but I really recommend the script!

    http://blog.tlensing.org/2013/02/24/objective-c-on-linux-setting-up-gnustep-clang-llvm-objective-c-2-0-blocks-runtime-gcd-on-ubuntu-12-04/#comment-54284

    regards

提交回复
热议问题