[swift-users] Can I create a Cocoa app that is only a Swift script?

Greg Parker gparker at apple.com
Wed Jun 21 17:52:57 CDT 2017

> On Jun 20, 2017, at 7:34 AM, tuuranton--- via swift-users <swift-users at swift.org> wrote:
> I want the entire code for my entire Mac app to look like this .swift script:
> #!/path/to/swift
> import Cocoa
> // The rest of my entire Mac app.
> Because we don't yet have binary stability, I guess I'd have to put the swift binary (which runs the above .swift script) and a bunch of .dylibs into the Mac .app bundle somehow.
> Is this possible to do and if so, how?

It is not. The first problem is that there is no value of "/path/to/swift" that will work everywhere.

Greg Parker     gparker at apple.com <mailto:gparker at apple.com>     Runtime Wrangler

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20170621/0210de3d/attachment.html>

More information about the swift-users mailing list