Installing the SDK with CocoaPods

https://www.youtube.com/watch?v=53f99A_ed6M

The easiest way to get the SDK into your iOS project is to use CocoaPods. Install CocoaPods using

gem install cocoapods

If this is your first time using CocoaPods, run

pod setup

to create a local CocoaPods spec mirror. Create a file in your Xcode project called Podfile and add the following line:

pod 'Ringcaptcha'

In your Xcode project directory run

pod install

to download and install the library. CocoaPods will create a new Xcode workspace. Remember to open up this workspace in Xcode and not your project.

Installing the SDK Manually

To embed the SDK just drag & drop the iOS SDK library into your libs folder in your XCode project.

After adding it, make sure that in every target that the SDK will be included you link it to Ringcaptcha.framework and CoreTelephony.framework.

https://my.ringcaptcha.com/assets/images/docs/ios-xcode-flags.png

Also Include under your Project "Build Settings""Linking" -> "Other Linker Flags" the following value: "-ObjC -all_load".

https://my.ringcaptcha.com/assets/images/docs/ios-xcode-settings.png

On each file you will be including RingCaptcha, make sure you import the header file.

Copy

**#import <Ringcaptcha/Ringcaptcha.h>**