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

CK TUNG tungchingkai at yahoo.com
Thu Jun 22 05:05:05 CDT 2017


Maybe just like python script

#!/usr/bin/env swift

> tuuranton--- via swift-users <swift-users at swift.org> 於 2017年6月22日 下午5:55 寫道:
> 
> > It is not. The first problem is that there is no
> > value of "/path/to/swift" that will work everywhere.
> 
> 
> Makes sense, but I guess one day macOS will ship with swift in a standard location like /usr/bin/swift so that would no longer be a problem.
> 
> 
> Out of curiosity, what are the some of the other problems?
> 
> 
> _______________________________________________
> 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