Follow these steps to run the Fordefi iOS mobile SDK.
JFrog credentials
You will need JFrog credentials to access the Fordefi iOS SDK repository. Please contact Fordefi support to obtain credentials.
- Install
cocoapods-art:sudo gem install cocoapods-art. - Add the Fordefi iOS SDK CocoaPods Repository using your JFrog credentials. To avoid saving credentials in your shell history, prefix the command with a space:
# Replace fordefi-user and fordefi-pass with credentials from support
export COCOAPODS_ART_CREDENTIALS="fordefi-user:fordefi-pass"
pod repo-art add fordefi-ios-sdk https://fordefi.jfrog.io/artifactory/api/pods/fordefi-ios-sdk
pod repo-art update fordefi-ios-sdk- Configure your
Podfilefor minimum integration (FordefiSdk only):
platform :ios, '13.0'
plugin 'cocoapods-art', :sources => ['fordefi-ios-sdk']
target 'YourApp' do
use_frameworks!
pod 'FordefiSdk', '2.21.0'
endRun
pod install.Disable User Script Sandboxing in Xcode: Open your project in Xcode, go to Build Settings, search for "User Script Sandboxing", and set it to
No. This is required to allow rsync during the XCFramework embed phase.
If you require the Fordefi Backup Provider SDK with cloud providers like Google Drive, perform these additional steps:
- Add the additional dependencies to your
Podfile:
platform :ios, '13.0'
plugin 'cocoapods-art', :sources => ['fordefi-ios-sdk']
target 'YourApp' do
use_frameworks!
pod 'FordefiSdk', '2.21.0'
pod 'FordefiBackupCloudProvidersSdk', '2.21.0'
# Required for Google Drive backup
pod 'GoogleSignIn', :git => 'https://github.com/google/GoogleSignIn-iOS.git', :tag => '7.0.0'
pod 'GoogleAPIClientForREST/Drive', :git => 'https://github.com/google/google-api-objectivec-client-for-rest.git', :tag => 'v3.1.0'
pod 'AppAuth', :git => 'https://github.com/openid/AppAuth-iOS.git', :tag => '1.6.2'
pod 'GTMAppAuth', :git => 'https://github.com/google/GTMAppAuth.git', :tag => '2.0.0'
pod 'GTMSessionFetcher/Core', :git => 'https://github.com/google/gtm-session-fetcher.git', :tag => 'v3.1.1'
endGoogle Drive dependencies
The Google Drive dependencies are pinned to specific versions. If your application uses different versions of these libraries, you might need to adjust the version tags to avoid conflicts.
- Run
pod install.