Objective-C 2.0 development environment using Clang 9 + GNUstep + libobjc2
10K+
This repository contains Dockerfiles to build Docker images that consist of:
By using this Docker container, you can compile Objective-C 2.0 sources with Clang 9. Since libobjc2 is set up, you can use the modern Objective-C features in your Objective-C sources, such as:
$ docker pull doratex/clang9-objc2:latest
or you can build the Docker image by yourself.
$ cd Dockerfile/ubuntu1910
$ docker build --no-cache=true -t clang9-objc2:ubuntu1910 .
The Dockerfiles are available at my GitHub repository.
$ docker run --rm -it -v $(pwd):/workdir doratex/clang9-objc2:latest /bin/bash
# clang-objc -o foobar foobar.m
# ./foobar
The clang-objc command is just an alias that is set in ~/.bashrc as follows.
alias clang-objc="\${CC} \$(gnustep-config --objc-flags) \$(gnustep-config --objc-libs) -fobjc-arc -lobjc -ldispatch -lgnustep-base"
test directory is included in my GitHub repository along with the Dockerfiles. You can test various Objective-C 2.0 features using test_all.sh.
$ docker run --rm -it -v $(pwd):/workdir doratex/clang9-objc2:latest /bin/bash
# cd test
# ./test_all.sh
Note that the last GUI test does not pass without X Window System.
I owe most of these building procedures and test files to @plaurent's GitHub repository.
Content type
Image
Digest
Size
500.1 MB
Last updated
over 6 years ago
docker pull doratex/clang9-objc2