# 4. Integrate Bayun SDK

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

![](https://1062292129-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6jEgruk5lQlOVO_bP2%2F-M6jHpSxa4ewSVHJlmZb%2F-M6jM6z_4onuxTg3m7yK%2F1-project%20structure.png?alt=media\&token=3e648261-b1a5-418c-8180-adc721af8f1c)

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.

![](https://1062292129-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6jEgruk5lQlOVO_bP2%2F-M6jHpSxa4ewSVHJlmZb%2F-M6jMGqryZ8GNPa6QJdB%2F2-copy%20items.png?alt=media\&token=a4ef6334-2728-49cc-93e0-d3407d594d99)

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.

![](https://1062292129-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6jEgruk5lQlOVO_bP2%2F-M6jHpSxa4ewSVHJlmZb%2F-M6jMYVIvAhypUP5686h%2FBridgingHeader.png?alt=media\&token=4576de7a-5f66-4273-ad22-042b50cb527e)

## **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.

{% hint style="info" %}
Official guide for how to add capabilities to your app is available at : <https://developer.apple.com/documentation/xcode/adding-capabilities-to-your-app>
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://bayun.gitbook.io/bayuncoresdk-ios/3.-installing-bayun-framework.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
