swift-sh
swift-sh copied to clipboard
Easily script with third-party Swift dependencies.
I'm on latest stable version of macOS (12.0.1) and Xcode (13.1) and I get this error: ``` ~/Library/Developer/swift-sh.cache/0f52af8da2fce590923c596de278045a: error: manifest parse error(s): ~/Library/Developer/swift-sh.cache/0f52af8da2fce590923c596de278045a/Package.swift:24:13: error: reference to member 'v12_1' cannot be...
I made a makefile to simplify installation on linux. If this is something you think the project would benefit from please do take it! :D I use this to simplify...
It would be nice if swift-sh would support scripts that contain the new `@main`. Like: ```swift @main struct MyTool: App { var body: some Scene { WindowGroup { Text("Hello World!")...
When importing a package which contains dash in the library name, they are automatically replaced by the Xcode build system to underscores, which breaks the dependency resolving and makes them...
```swift #!/usr/bin/swift sh import Basic // https://github.com/apple/swift-package-manager.git ~> 0.2.1 import Utility // https://github.com/apple/swift-package-manager.git ~> 0.2.1 ``` yields ``` Fatal error: Duplicate values for key: 'SwiftPM' ```
Today, I researched a way for handling helper scripts for my Mac application. I tested all three major players (swift-sh, Marathon, Beak) and I like the approach of swift-sh the...
I've just tried to run a Swift script using `swift-sh` in the Xcode build scripts step in an iOS project and it failed with the following output: ```bash using sysroot...
A common hack is to use `#filename` to locate resources living alongside the source files. When swift-sh moves the script source to its cache, this doesn't work anymore. Idea: Instead...
I'm in a situation where I have to create an executable out of a script to distribute it among my coworkers who don't have the development environment set up. I'm...
It's possible that Package.swift is re-written but `swift-build` doesn’t rebuild the resulting binary, this leads to us always running `swift-build` which delays script execution by ~120ms. Also (unrelated) we should...