You can execute the process under sandbox-exec to take advantage of OS X kernel-level sandboxing. You'll need to write your own profile file that allows/denys what you want. There are plenty of examples of these .sb profile files under /System/Library. More: https://developer.apple.com/library/mac/documentation/Darwin...
jparishy|11 years ago
lstamour|11 years ago
That said, the best, most foolproof way of doing this really comes down to using OS X to virtualize OS X.
Or you could try cross-compiling. It seems to work here: https://github.com/swift-x/tools (which looks interesting...)
It's possible that by the end of this week, maybe next, it will be very easy indeed to compile and/or run Swift on Linux from Linux, at which point you could try LXC or a million other ways to virtualize.
LinaLauneBaer|11 years ago
jhammer|11 years ago
jparishy|11 years ago