> 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>Access to the camera 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. Those credentials must be obtained through the Facephi support team. Below, we indicate how to prepare the environment to consume the components:

* First, we install the command that will give us access to use CocoaPods with **Artifactory**.

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

In case you are using a Mac with **chip M1**, errors may occur during installation; it is possible that errors will occur 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
```

In case of 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 **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 above code fragment 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 removed completely before installing the components of the ***SDKMobile***.

* Currently the FacePhi libraries are distributed remotely through different dependency managers, in this case, ***CocoaPods*****. Mandatory dependencies** which 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 running the ***pod install*** you must use the following command to update the local repository:

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