Swiftpack.co -  erica/Swift-Mac-Utility as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Taking the Mac out of the General Utility and putting it in its own package
.package(url: "https://github.com/erica/Swift-Mac-Utility.git", from: "0.0.4")

Swift Mac Utility

Support code for developing Swift code on Mac.

Extends and depends on Swift-General-Utility.



Run a system command with Process and return the contents of stdout or throw stderr for non-zero status. Although you may call this with either a single string or (cmd-path, argument-array), the latter approach is preferred.

Type Utilities

FileManager utility

  • Performs isDir check on path.
  • Creates new empty files.

String utility

  • Perform isDir check on string path.

URL utility

  • Version a URL to ensure a new file won't overwrite existing files.


PROJECT > Swift Packages > Install:



dependencies: [
.package(url: "https://github.com/erica/Swift-Mac-Utility", from: "x.x.x"), // replace with version
targets: [
        name: "TARGET-NAME",
        dependencies: [
           .product(name: "MacUtility", package: "Swift-Mac-Utility"),


Stars: 6
Last commit: 5 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API