Minimum requirements
Before integrating the Facephi SDK Mobile, make sure you meet the following requirements:
A device running iOS 9 or later. Please note that some modules/components require later minimum versions.
Required permissions. Some components need access to:
Camera
Microphone
Screen Sharing
NFC reader
An up-to-date version of Xcode.
macOS
Supports chips Intel and Apple M.
Known issues (Mac with M1 chip)
If you're using a Mac with an M1 chip and want to distribute via CocoaPods instead of SPM:
Avoid installing CocoaPods using Homebrew.
Install cocoapods and cocoapods-art using
gem.
The following script automatically prepares the environment:
#! /bin/zsh
install_cocoapods () {
echo "Installing cocoapods with gem"
# Creating new gems home if it doesnt't exist
if [ ! -d "$HOME/.gem" ]; then
mkdir "$HOME/.gem"
fi
# Adding to current session
export GEM_HOME="$HOME/.gem"
export PATH="$GEM_HOME/bin:$PATH"
# Adding for future sessions
if test -f "$HOME/.zshrc"; then
echo 'Adding $GEM_HOME env var and then adding it to your $PATH'
echo '' >> "$HOME/.zshrc"
echo 'export GEM_HOME="$HOME/.gem"' >> "$HOME/.zshrc"
echo 'export PATH="$GEM_HOME/bin:$PATH"' >> "$HOME/.zshrc"
echo 'alias pod='arch -x86_64 pod'' >> "$HOME/.zshrc"
fi
# Installing cocoapods
gem install cocoapods
sudo arch -x86_64 gem install ffi
which pod
pod --version
gem install cocoapods-art
}
uninstall_cocoapods_homebrew () {
which -s brew
if [[ $? != 0 ]] ; then
echo "Homebrew not installed, skipping uninstalling cocoapods from homebrew"
else
brew uninstall cocoapods
fi
}
if ! type "pod" > /dev/null; then
echo "You don't have cocoapods installed..."
else
echo "Trying to uninstall it from homebrew first"
uninstall_cocoapods_homebrew
fi
install_cocoapods
Last updated