Before you use the upload SDK for iOS to upload media files, you must integrate the SDK. This topic describes how to integrate the upload SDK for iOS.
Prerequisites
iOS 8 or a later version is used on your terminal device.
Usage notes
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 SDK
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.