Before you use the upload SDK for iOS, you must integrate the upload SDK for iOS and configure a project. This topic describes how to integrate the upload SDK for iOS and configure a project.
Prerequisites
Limits
The upload SDK for iOS does not support programming in the Swift language.
Integrate the upload SDK in pod mode (recommended)
- Run the
pod 'VODUpload'
command to add the dependencies of the upload SDK to the Podfile file. - Run the
pod repo update
command to update the pod repository. - Run the
pod install
command to install the upload SDK.
Manually integrate the upload SDK (not recommended)
- Download the upload framework VODUpload.framework. For more information, see SDK download.
- Download the OSS framework AliyunOSSiOS.framework. For more information, see SDK download.
- In Xcode, drag the VODUpload.framework and AliyunOSSiOS.framework to the Target project. In the dialog box that appears, select Copy items if needed.
- Add the following system dependencies:
- AVFoundation.framework
- CoreMedia.framework
- SystemConfiguration.framework
- MobileCoreServices.framework
- libresolv.9.tbd
Configure the project
After the upload SDK is integrated, open the project and modify the configuration.
- Choose .
- Add -ObjC.