π± Simulator
A simctl wrapper in Swift.
Install π
Using CocoaPods
Add the following line to your Podfile
and run pod install
:
pod "Simulator", "~> 0.2.0"
Using Swift Package Manager
Add the following dependency to your Package.swift
:
.package(url: "https://github.com/tuist/simulator.git", .upToNextMinor(from: "0.2.0")),
Using Carthage
Add the following line to your Cartfile
and link the Simulator.framework
from the project:
github "tuist/simulator" ~> 0.2.0
Note: Simulator is only compatible with macOS
Usage π
Devices
// List devices
let devices = Device.list
Runtimes
// List runtimes
let runtimes = Runtime.list
// Get the latest runtime
let latestiOS = Runtime.latest(platform: .iOS)
Setup for development π©βπ»
- Git clone:
git@github.com:tuist/simulator.git
- Generate Xcode project with
swift package generate-xcodeproj
. - Open
Simulator.xcodeproj
. - Have fun π€
Open source
Tuist is a proud supporter of the Software Freedom Conservacy