> For the complete documentation index, see [llms.txt](https://legacy-docs.usesmileid.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://legacy-docs.usesmileid.com/integration-options/mobile/ios/adding-the-library.md).

# Installation

{% hint style="danger" %}
This SDK is deprecated and will receive limited support. Please adopt the v10 SDK: [https://github.com/smileidentity/docs/blob/main/mobile/ios/broken-reference/README.md](https://github.com/smileidentity/docs/blob/main/mobile/ios/broken-reference/README.md "mention")
{% endhint %}

## Cocoapods <a href="#smile-config-file" id="smile-config-file"></a>

After you install or update your project's Pods, open your Xcode project using its `.xcworkspace`. The IOS SDK is supported in Xcode version 12.4 or greater.

#### 1. Cocoapods Setup

The SDK is available via cocoapods currently , please see [here](https://guides.cocoapods.org/) for how cocoapods works and to install the SDK please add the following in your Podfile

```
 pod 'Smile_Identity_SDK'
```

#### 2. Install the cocoapods dependency

After adding the above text to your Podfile, in the same location as the file open the terminal and run the following command

```
pod install
```

The SDK requires the following permissions to work correctly in your app's info.plist

| Property Name                                         | Type Value |                                            |
| ----------------------------------------------------- | ---------- | ------------------------------------------ |
| Privacy - Camera Usage Description                    | String     | “Used to take a selfie or id card photo”.  |
| Privacy - Location When in Use Usage Description      | String     | “To all Smile ID to access your location.” |
| App Transport Security Settings Allow Arbitrary Loads | Boolean    | YES                                        |

### Smile Config

#### 1. Place the smile\_config.json inside the your project's folder

#### 2.Open XCode and click on the project navigator and select your project file

![](/files/WXrQlejmbEXw9IzTTZCo)

#### 3. Click the target and click Build Phases and under copy bundle resources click the plus icon and navigate to your project location with smile\_config.json and pick the file

![](/files/uUbgTCjNw9He3JoXjc1e)

That's it IOS is ready


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://legacy-docs.usesmileid.com/integration-options/mobile/ios/adding-the-library.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
