xcode-simulator-cert/README.md

1.8 KiB

xcode-simulator-tool

Swift 5 compatible Xcode 10.2 compatible

This is a tool to manage Xcode simulators and their root certificates.

If you have a certificate for your server in PEM format in a file myhost.crt, type:

$ xcode-simulator-tool install-ca myhost.crt

It will then install the certificate in all your simulators. You can also specify a specific simulator:

$ xcode-simulator-tool install-ca myhost.crt --device-name="iPhone 8"

There are also some other subcommands and options available. --help is your friend.

Installation

Using Homebrew

Homebrew is the de-facto standard package manager for macOS open-source tools and other things.

$ brew install skagedal/formulae/xcode-simulator-tool

Using Mint

Mint is a pretty nice package manager for Swift Package Manager-based projects, such as this one.

$ mint install skagedal/xcode-simulator-tool

Development

If you'd like to hack on xcode-simulator-tool, you may run generate-xcodeproj.sh to generate an Xcode project.

Acknowledgements

This tool is largely based on the work of Daniel Cerutti and his ADVTrustStore tool. xcode-simulator-tool doesn't do much more than what his tool does at the moment. I mostly just wanted to rewrite it in Swift.