> For the complete documentation index, see [llms.txt](https://docs.facephi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.facephi.com/docs.facephi-en/sdks/sdk-mobile/framework-plugins/extras/ios.md).

# iOS

For ***iOS***, update the file `Info.plist` with the required keys at the client application level:

```xml
<key>NSCameraUsageDescription</key>
<string>Camera access is required for biometric verification.</string>
<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
</dict>
```

#### Add private repository

To gain access to our private repository, you must have previously installed **CocoaPods** on the machine.

For security and maintenance reasons, the new components of the ***SDKMobile*** are stored in private repositories that require specific credentials to access them. These credentials must be obtained through the Facephi support team. The following explains how to prepare the environment to use the components:

* First we install the command that will allow us to use cocoapods with **Artifactory**.

```bash
sudo gem install cocoapods-art
```

If using a Mac with **M1 chip**, errors may occur during installation and may arise in the future; if so, it is recommended to use the following command instead:

```bash
sudo arch -arm64 gem install ffi; sudo arch -arm64 gem install cocoapods-art
```

If there are problems with the installation, completely uninstall cocoapods and all its dependencies to perform a clean installation.

* We will need to add the repository to the list in the file **netrc**. To do this, from a Terminal, run the following command:

```bash
$ nano ~/.netrc
```

And we copy the following snippet with the corresponding data at the end of the file:

```bash
machine facephicorp.jfrog.io
  login <USERNAME>
  password <TOKEN>
```

It is important to copy the previous code snippet exactly. The indentation before the words login and password consists of two spaces.

* Finally, the repository containing private dependencies will be added:

```sh
pod repo-art add cocoa-pro-fphi 
"https://facephicorp.jfrog.io/artifactory/api/pods/cocoa-pro-fphi"
```

#### Required dependencies for the Integration

To avoid conflicts and compatibility issues, if you want to install the component in a project that contains an old version of the Facephi libraries (*Widgets*), these must be completely removed before installing the components of the ***SDKMobile***.

* Currently, the FacePhi libraries are distributed remotely through different dependency managers, in this case, ***CocoaPods*****. Mandatory dependencies** that must be installed beforehand (by adding them to the *Podfile*):

```sh
plugin 'cocoapods-art', :sources => ['cocoa-pro-fphi’]
source 'https://cdn.cocoapods.org/'

target 'Example' do
... 
```

* When you want to update dependencies, before executing the ***pod install*** you must use the following command to update the local repository:

```sh
pod repo-art update cocoa-pro-fphi --prune
```
