Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
machine mobile-protect-repos.securetheorem.com
  username cocoapods
  password {MOBILEPROTECT_REPO_API_KEY}

...

Code Block
target 'MyAwesomeApp' do
  ...
  pod 'MobileProtect'
  pod 'MobileProtectAntiFraud'
end

MobileProtectAntiFraud includes depends on MobileProtect so it isn’t is needed to add both pods.

And then run pod install to retrieve the pods for the project. See https://guides.cocoapods.org/using/the-podfile.html#specifying-pod-versions for deciding if pinning the pod versions is the best practice for your project.

Note: If you encounter duplication issues because you have both TrustKit and MobileProtect, you can use the MobileProtect-NoTrustKit pod and keep TrustKit as is.

Note: If you get an error about missing username when installing/updating the pods

Code Block
fatal: could not read Username for 'https://mobile-protect-repos.securetheorem.com': Device not configured

Edit the ~/.netrc file to add the following line above the password line:

Code Block
  username cocoapods

Step 3: Add the Mobile Protect configuration

...