CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.

MindBehind 1.0.0

MindBehind 1.0.0

Maintained by Ahmad Mhaish.



  • By
  • Mindbehind

Installation guide

To add the MindBehind.framework library to your XCode project, follow the steps below to install the framework using CocoaPods

  1. First, install CocoaPods if it isn't already
gem install cocoapods
  1. Copy the MindBehind.framework and MindBehind.podspec files somewhere in your project directory, for example in vendor/MindBehind
  2. Add the MindBehind dependency to your Podfile, using a local path that points to the directory in step 2
target 'YourApp' do
    pod 'MindBehind', :path => 'vendor/MindBehind'
end
  1. Install the pod
pod install
  1. Open the generated .xcworkspace file and add the following keys to your app's Info.plist file (replacing the values if desired):
<key>NSPhotoLibraryUsageDescription</key>
<string>${PRODUCT_NAME} will read your photo library to gather additional information</string>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>${PRODUCT_NAME} will write to your photo library to gather additional information</string>
<key>NSCameraUsageDescription</key>
<string>${PRODUCT_NAME} will use your camera to gather additional information</string>
  1. Start using the framework in your code.

Objective-C:

#import <MindBehind/MindBehind.h>

[MindBehind initWithSettings:[MBCSettings settingsWithIntegrationId:@"YOUR_INTEGRATION_ID"] completionHandler:^(NSError * _Nullable error, NSDictionary * _Nullable userInfo) {
    // Your code after init is complete
}];

Swift:

MindBehind.initWith(MBCSettings(integrationId: "YOUR_INTEGRATION_ID")) { (error: Error?, userInfo: [AnyHashable : Any]?) in
    // Your code after init is complete
}