Install Fillr iOS SDK with Cocoapod
Fillr SDK is hosted on Jfrog Artifactory as private repository. In order to use CocoaPods with Artifactory, you need the cocoapods-art plugin.
- Install the cocoapods-art plugin on your local machine from terminal:
gem install cocoapods-art
- The cocoapods-art plugin uses .netrc file for repository authentication. Add your Fillr iOS SDK repository username and password to your local ~/.netrc file as follow:
machine fillr.jfrog.io
login username
password password
- Add an Fillr repository to your local cocoapod from terminal:
pod repo-art add fillr-ios-sdk "https://fillr.jfrog.io/fillr/api/pods/fillr-ios-sdk"
- Update your project Podfile, add the following, replace the target and version number:
plugin 'cocoapods-art', :sources => [
'fillr-ios-sdk'
]
target "your-target" do
pod 'fillr-xcframeworks-headless-only', '~> sdk.version.number'
end
- Run
pod install
to install Fillr SDK, you should be able to see Fillr SDK header files and static library file underPods
folder. Now you can continue with your integration.
Update Fillr iOS SDK
As opposed to the cocoapods client’s default behavior, the cocoapods-art plugin does not automatically update its index whenever you run client commands.
So if a new version of Fillr SDK is released, you need to update your local repository by running following command:
pod repo-art update fillr-ios-sdk
If you don’t see a new version when updating repository or run into any other issue, you can try clean your local pod cache by:
pod cache clean fillr-ios-sdk
or you can remove the repository and add it again:
pod repo-art remove fillr-ios-sdk
rm -rf ~/.cocoapods/repos/fillr-ios-sdk