4. Integrate Bayun SDK

Select your project in the project navigator in Xcode. You will get access to your project settings.

In the target setting select the General tab. Under "Embedded Binaries", click the "+" button to add an item. On the popup, click "Add Other...". Select Bayun.framework from BayunSDK folder and click "Open". A dialog will appear asking you to choose options for adding this file, as shown in the image below.

Select the ‘Copy items if needed’ option.

Click Finish and the framework will be added to your project.

Objective-C

Just #import <Bayun/BayunCore.h> to use Bayun public methods.

Swift

  1. Go to File>New>File.. and add a new header file called '[AppNameHere]-Bridging-Header.h'.

  2. Add #import <Bayun/BayunCore.h> to the new header file.

  3. Go to "Build Settings" and search for "Objective-c Bridging Header". Enter your bridging header here.

KeyChain Entitlement

Add KeyChain Entitlement, Go to project settings -> Signing & Capabilities -> Keychain Sharing -> Add Keychain Groups

Your project is now ready to use the Bayun framework.

Official guide for how to add capabilities to your app is available at : https://developer.apple.com/documentation/xcode/adding-capabilities-to-your-app

Last updated