Skip to content

Grants permission for services such as calendar, contacts, microphone, etc for iOS simulators for the purpose of unit testing.

License

Notifications You must be signed in to change notification settings

MathewYaldo/SimulatorPermissions

Repository files navigation

SimulatorPermissions

CI Build CI Status Version License Platform

SimulatorPermissions

SimulatorPermissions is a library that allows you to easily grant permissions on a simulator for unit testing purposes.

For example, you may have an app that deals with contacts and you need to get that permission. You could manually get the permission within the simulator and then run your unit tests, but this wouldn't work testing in a CI/CD environment. With this library, you can set the necessary permissions allowing you test on a simulator without ever having to manually hit Allow on a prompt requesting for permission.

This library is intended to be the successor to JPSimulatorHacks.

Requirements

Installation

SimulatorPermissions is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'SimulatorPermissions'

New to CocoaPods? click here for more information and a setup guide

Author

Mathew Yaldo, mathewyaldo@oakland.edu

License

SimulatorPermissions is available under the MIT license. See the LICENSE file for more info.