/

Installation & Setup

Shield for iOS is distributed as a Python package and installed via pip. This guide covers installation, verification, and initial setup.


Requirements

  • Python 3.8 or later
  • pip package manager
  • macOS recommended (required for code signing and full Xcode integration)
  • Linux supported for CI/CD pipelines and headless builds

Install Shield

Install the Shield CLI tool from pip:

Bash
pip install shield-ios

This installs the shield-ios command-line tool and all required dependencies.


Verify Installation

Confirm that Shield is installed correctly:

Bash
shield-ios version

This displays the installed version and confirms the tool is available in your PATH.


Initialize a Project

Navigate to your iOS project directory and generate a default configuration file:

Bash
cd /path/to/your/ios-project
shield-ios init

This creates a shield-ios.json file with a default configuration template. Open it and add your project token and desired protections.


Dependencies

Shield installs the following dependencies automatically:

DependencyPurpose
liefBinary parsing and modification
clickCommand-line interface
pyyamlConfiguration file parsing
coloramaTerminal output formatting
pycryptodomeCryptographic operations
requestsCloud Panel communication

All dependencies are installed automatically when you run pip install shield-ios.


Updating Shield

To update to the latest version:

Bash
pip install --upgrade shield-ios

Virtual Environments

For isolated installations, you can use a Python virtual environment:

Bash
python3 -m venv shield-env
source shield-env/bin/activate
pip install shield-ios

This is useful when you want to keep Shield separate from your system Python packages.


Previous
Project Token