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

Jonathan Prescott jprescott12 at icloud.com
Tue Jun 20 21:16:14 CDT 2017


Why do you want to do this?
What to you mean by “binary stability?”  
Why not use Xcode to build an application using the swift compiler?

> On Jun 20, 2017, at 10: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?
> 
> _______________________________________________
> swift-users mailing list
> swift-users at swift.org
> https://lists.swift.org/mailman/listinfo/swift-users



More information about the swift-users mailing list