For the complete documentation index, see llms.txt. This page is also available as Markdown.

iOS

Native installation guide for hybrid frameworks.

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

<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.

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:

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:

$ nano ~/.netrc

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

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:

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):

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

Last updated