r/ObjectiveC • u/_int3h_ • Aug 08 '19
Is it possible to compile Apple's Objective-C runtime on Ubuntu?
Apple has made their Objective-C runtime open source. So it is possible to use that instead of GNUStep's libobjc2 runtime library on Ubuntu?
8
Upvotes
5
u/balthisar Aug 08 '19 edited 24d ago
Edited away.
2
u/phughes Aug 08 '19
Well, that's news. When did that happen?
3
u/mantrap2 Aug 08 '19
In the spirit of OSS and Linux, just do it!!
2
u/mulle_nat Aug 09 '19
It's been awhile, since I looked into this, but I believe the main problems you will encounter are, that the runtime is tied to dyld and dyld is tied to the kernel. I figured, it would be easier to create my own runtime (https://mulle-objc.github.io)
2
u/snuxoll Aug 15 '19
The APSL is not compatible with the GPL, that's why it's not used (there may be technical reasons as well, but considering they build it on Windows as well I doubt this is a huge hurdle). This is fine when you are building GPL software on macOS because the runtime falls under the system-library exception, but no such luck elsewhere.
2
u/[deleted] Oct 10 '19
Yes, you can, but a lot or Apples syntactic sugar doesn’t exist.