How would a keep a command-line tool running for ever.
This is my code:
#import int main (int argc, const char * arg
In Swift 4,
RunLoop.current.run()
Cheers.
You need to enter into a runloop using either CFRunLoop or NSRunLoop.
Try:
[[NSRunLoop currentRunLoop] run];