> For the complete documentation index, see [llms.txt](https://bayun.gitbook.io/bayun-awss3-wrapper-ios-programming-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bayun.gitbook.io/bayun-awss3-wrapper-ios-programming-guide/chapter1.md).

# 3. Integrate Bayun SDK

## 3.1 Integrate Bayun SDK

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

![](https://3359993643-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6FcfS5_W_ijiDspF0H%2Fsync%2F66c16eea650d79b6216c5a35ba1cc494cfa2fcac.png?generation=1588343324428181\&alt=media)

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://3359993643-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6FcfS5_W_ijiDspF0H%2Fsync%2F091bbf6462328497208eb2dc2f87454624c830dd.png?generation=1588343324109219\&alt=media)

Check the ‘Copy items if needed’ option.

Click Finish and the framework will be added to the project as shown below.

![](https://3359993643-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6FcfS5_W_ijiDspF0H%2Fsync%2Fc7ea4daec9944c21813075aa5a30b74c02e429a4.png?generation=1588343323524135\&alt=media)

## 3.2 Adding Bayun AWSS3 wrapper classes

You can find the Bayun AWSS3 Wrapper classes in BayunSDK/iOS/S3Wrapper folder.

Create a folder `SecureAWSS3` in your project. Drag and drop the Bayun AWSS3 Wrapper classes in `SecureAWSS3` folder.

Check the ‘Copy items if needed’ option.

![](https://3359993643-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6FcfS5_W_ijiDspF0H%2Fsync%2Ff8b380b31dea125b686aa598a6efe9c64bc42a2d.png?generation=1588343323558080\&alt=media)

Click Finish and the `SecureAWS3` folder will be added to the project as shown below.

<figure><img src="https://3359993643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M6FcfS5_W_ijiDspF0H%2Fuploads%2FI3nfCAfK816KZjU9dlWR%2FScreenshot%202023-01-19%20at%203.34.39%20PM.png?alt=media&amp;token=dc3761a2-69cb-4512-8723-05b25228d824" alt=""><figcaption></figcaption></figure>

### Objective-C

Just  `#import "SecureAWSS3TransferUtility.h"` to use SecureAWSS3TransferUtility methods.

### Swift

1. Go to File>New>File.. and add a new header file called '\[AppNameHere]-Bridging-Header.h'.
2. Add  `#import "SecureAWSS3TransferUtility.h"` to the new header file.
3. Go go "Build Settings" and search for "Objective-c Bridging Header". Enter your bridging header here.

![](https://3359993643-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6FcfS5_W_ijiDspF0H%2Fsync%2F3522fc68ac97f76fd3b197f0a67be16c1f504663.png?generation=1588343324225569\&alt=media)

## 3.3  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 AWSS3 Wrapper.
