Swiftpack.co - Package - tuist/simulator

📱 Simulator

A simctl wrapper in Swift.

code style: prettier CircleCI codecov Slack

Install 🛠

Using CocoaPods

Add the following line to your Podfile and run pod install:

pod "Simulator", "~> 0.3.0"

Using Swift Package Manager

Add the following dependency to your Package.swift:

.package(url: "https://github.com/tuist/simulator.git", .upToNextMinor(from: "0.3.0")),

Using Carthage

Add the following line to your Cartfile and link the Simulator.framework from the project:

github "tuist/simulator" ~> 0.3.0

Note: Simulator is only compatible with macOS

Usage 🚀

Devices

// List devices
let devices = try Device.list

// Launch simulator
try device.launch()

// Install an app
let appPath = URL(fileURLWithPath: "/path/App.app")
try device.install(appPath)

// Uninstall an app
try device.uninstall("io.tuist.App")

// Erase the device content
try device.erase()

// Get device runtime
let runtime = try device.runtime()
let runtimeVersion = runtime.version

Runtimes

// List runtimes
let runtimes = try Runtime.list

// Get the latest runtime
let latestiOS = try Runtime.latest(platform: .iOS)

Setup for development 👩‍💻

  1. Git clone: git@github.com:tuist/simulator.git
  2. Generate Xcode project with swift package generate-xcodeproj.
  3. Open Simulator.xcodeproj.
  4. Have fun 🤖

Open source

Tuist is a proud supporter of the Software Freedom Conservacy

Become a Conservancy Supporter!

Github

link
Stars: 7
Help us keep the lights on

Dependencies

Used By

Total: 0

Releases

0.3.0 - Nov 14, 2018

Added

  • Add Device.launch method by @frowing
  • Add Device.launchApp method by @frowing

0.2.0 - Nov 8, 2018

Added

  • Add Device.list method by @pepibumur
  • Add Runtime.list method by @pepibumur
  • Add methods to interact with the device by @pepibumur.

0.1.0 - Nov 2, 2018

Added

  • MockSimCtl class https://github.com/tuist/simulator/pull/2 by @pepibumur
  • Device.list method https://github.com/tuist/simulator/pull/3 by @pepibumur