Integrating MimiSDK Using CocoaPods

MimiSDK is available to be integrated via CocoaPods. We provide URL’s for Podspecs which allow for pinning to a specific version or always the current stable release.

If you’re new to CocoaPods, take a look at the Getting Started guide.

Authentication

The binaries for MimiSDK are securely stored, meaning you are required to authenticate with our Integration Portal to access them.

To provide your credentials when using CocoaPods, they need to be provided from a .netrc file in your home directory (~/.netrc).

The file should look as follows:

machine api.integrate.mimi.io
    login {YOUR_MIMI_USERNAME}
    password {YOUR_MIMI_PASSWORD}

The username and password here are the same ones used to log in to integrate.mimi.io.

Your Podfile

With authentication settled, you can now modify your Podfile.

Always Use the Latest Release:

use_frameworks!

target :YourTargetName do
  pod 'MimiSDK',
      podspec: 'https://api.integrate.mimi.io/files/sdk/ios/pods/latest.podspec'
end

Pinning to a Specific Version (e.g. 4.7.0):

use_frameworks!

target :YourTargetName do
  pod 'MimiSDK',
      podspec: 'https://api.integrate.mimi.io/files/sdk/ios/pods/4.7.0.podspec'
end

Once you have completed your Podfile, simply run pod install.