Swiftpack.co - Alexander-Ignition/XSTooling as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Alexander-Ignition/XSTooling
Xcode + Swift toolset
.package(url: "https://github.com/Alexander-Ignition/XSTooling.git", from: "0.0.1")

XSTooling

Test SPM compatible Swift 5.3 GitHub license

Xcode and Swift toolset

Supported tools:

  • shell
  • xcrun
  • simstl

Getting Started

To use the XSTooling library in a SwiftPM project, add the following line to the dependencies in your Package.swift file:

.package(url: "https://github.com/Alexander-Ignition/XSTooling", from: "0.0.1"),

Include "XSTooling" as a dependency for your executable target:

.target(name: "<target>", dependencies: [
    "XSTooling",
]),

Finally, add import XSTooling to your source code.

import XSTooling

let shell = Shell.sh

let path = try shell("pwd").string
let files = try shell("ls").string.split(separator: "\n")

simctl

Simulator control tool.

Fetch Extract the list of devices and filter them by the prefix of the name "iPhone".

let xcrun = XCRun()
let simulator = try xcrun.simctl()

let devices = try simulator.list().devices(where: { device in
    device.name.hasPrefix("iPhone")
})

devices

GitHub

link
Stars: 0
Last commit: 19 hours 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.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Release Notes

0.0.1
1 week ago

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