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.

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.

Check the ‘Copy items if needed’ option.

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

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.

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

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.

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.

Last updated