# Installation

**BotProtection** is distributed to the iOS platform as a pod. To add a pod, you first need to install **CocoaPods** and init pod files.

If you don’t have **CocoaPods** installed on your machine, you can install it by running the following command:

```bash
$ gem install cocoapods
```

To add pods to your Xcode project:

* Go to your project folder

```bash
$ cd PATH_TO_YOUR_PROJECT_FOLDER
```

* Once you are inside the project folder, type the command below to create/initialize your POD files:

```bash
$ pod init
```

After running the `pod init` command you will notice that a **Podfile** was added to your project’s folder.

![](https://682550200-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LxuA45qGEyH69CNfgF8%2F-LzCOqQGWCmWBTAKUxi2%2F-LzCV9THviZxXVP4aLvp%2Fimage.png?alt=media\&token=7cab3a9b-4978-42e3-b5d7-655705d60992)

To add **BotProtection** pod, you need to open `Podfile` under your project and add `pod 'BotProtection'`:

![](https://682550200-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LxuA45qGEyH69CNfgF8%2F-LzCOqQGWCmWBTAKUxi2%2F-LzCWBW16etwf2nR_fxU%2Fimage.png?alt=media\&token=c83f3117-27bb-4b17-a3c1-b28e3263f019)

Then, execute `pod install` to install BotProtection pod.

```bash
$ pod install
```
