I'm simply looking for an online objective-c compiler. At the moment I have only found ideone.com but it shows errors for any Foundation (e.g NSObject
) or UIKit (e.g UIView
) classes.
Is there an online compiler for objective-c that can handle Foundation and UIKit classes? Failing that, how might I go about doing this myself on my own server?
EDIT:
As it seems there is no existing online compiler. I'm now asking for a how to guide to build my own online objective-c compiler on a server.
It needs to be able to take a file of code, compile it and output any errors and warnings. It must also be able to handle Foundation and UIKit classes by having access to the necessary frameworks.
I don't know any web-development languages so as much help as possible would be great!
This question is interesting, but covers really a pretty broad ground. First step is to hone in on exactly what you're trying to create:
Assuming you want something pretty rudimentary to start with (a form that can compile Obj-C but have Foundation and UIKit available to the compiler), you'd basically:
How to do the PHP, and how to get the gcc stuff right are a little beyond the scope of this question, and depend on how comfortable you already are with the individual components. (As a commenter pointed out, it's worth being a little careful around any agreements you may have in place around usage of the iOS SDK materials, in particular if anyone besides yourself can use your service.)