Prerequisites
Before you begin, ensure you have:- Xcode 12.0 or later installed
- iOS 13.0+ as your deployment target
- CocoaPods installed on your machine
- A MetaMap account with Client ID and Flow ID
If you don’t have CocoaPods installed, run:
sudo gem install cocoapodsInstallation Steps
Create or Update Podfile
Navigate to your iOS project directory and create a Add the MetaMap SDK pod to your
Podfile if you don’t have one:Podfile:Podfile
Install Dependencies
Run the following command in your terminal to install the SDK:This will download the MetaMap SDK and its dependencies (approximately 30 MB).
Configure Info.plist Permissions
Add the required privacy permissions to your
Info.plist file. The SDK requires access to the camera, photo library, microphone, and optionally location.- XML Format
- Xcode Property List
Add the following keys to your
Info.plist:Info.plist
Verify Installation
To verify that the SDK is properly installed:- Open your project workspace:
open YourProject.xcworkspace - Build your project (⌘ + B)
- Ensure there are no compilation errors
If the build succeeds, you’ve successfully installed MetaMap iOS SDK!
SDK Components
The MetaMap SDK installation includes the following frameworks:- MetaMapSDK.xcframework - Core SDK functionality
- IncdOnboarding.xcframework - Onboarding flow components
- opencv2.xcframework - Image processing capabilities
Troubleshooting
CocoaPods cannot find MetaMapSDK
CocoaPods cannot find MetaMapSDK
Update your CocoaPods repo:
Build fails with framework not found
Build fails with framework not found
Clean your build folder and reinstall:Then clean your Xcode build folder (⌘ + Shift + K) and rebuild.
Permission crash on device
Permission crash on device
Ensure all required permission descriptions are added to your
Info.plist. Missing permission descriptions will cause crashes when the SDK attempts to access those resources.Next Steps
Quickstart Guide
Learn how to implement MetaMap verification in your app