3. Integrate Bayun SDK
Last updated
Was this helpful?
Last updated
Was this helpful?
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.
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.
Just #import "SecureAWSS3TransferUtility.h"
to use SecureAWSS3TransferUtility methods.
Go to File>New>File.. and add a new header file called '[AppNameHere]-Bridging-Header.h'.
Add #import "SecureAWSS3TransferUtility.h"
to the new header file.
Go go "Build Settings" and search for "Objective-c Bridging Header". Enter your bridging header here.
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.