• Stars
    star
    251
  • Rank 161,862 (Top 4 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created over 9 years ago
  • Updated about 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Create an OS X app that installs your iOS app into iOS Simulator

Command-line tool to create an OS X app with your iOS Simulator app packaged in. The result looks like this:

When you open it, it launches iOS Simulator and installs the packaged iOS app.

Why use it?

  • Install older builds without having to git checkout and recompile everything

  • Share simulator builds as OS X apps with members of your team

  • Test version migrations faster by installing builds consecutively

Installation

ios-simulator-app-installer is distributed via Homebrew.

brew install stepanhruda/tap/ios-simulator-app-installer

Latest stable version of Xcode and OS X El Capitan are required.

Usage

Example: ios-simulator-app-installer --app "Rocket Science.app" --device "iPhone"

  • --app

An app out of which the installer app is created. The easiest way to get a .app is by compiling your project using xcodebuild and looking in DerivedData/Build/Products/Debug-iphonesimulator:

xcodebuild -workspace RocketScience.xcworkspace -scheme RocketScience -configuration Debug -derivedDataPath build/DerivedData -sdk iphonesimulator

ios-simulator-app-installer --app "build/DerivedData/Build/Products/Debug-iphonesimulator/Rocket Science.app"
  • --device

Restricts installing the app to certain simulators. Keep in mind your selection might not be available on someone else's machine or over time.

If multiple devices match your string, the user will be prompted to select one.

  • --fresh-install

A fresh install of the app on every installer launch. This is helpful if you want to blow away the local storage or e.g. clean NSUserDefaults on every launch.

  • --out

Output path where your installer shall be created. Default is YourApp Installer.app.

  • --list-devices

Lists out simulator identifiers available on your current machine.

  • --help

In case you get lost.

Legal

MIT license in LICENSE. Icon from designcontest.com under CC.