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

Your device is running iOS 8 or later.

Limits

The upload SDK for iOS does not support programming in the Swift language.

Integrate the upload SDK in pod mode (recommended)

  1. Run the pod 'VODUpload' command to add the dependencies of the upload SDK to the Podfile file.
  2. Run the pod repo update command to update the pod repository.
  3. Run the pod install command to install the upload SDK.

Manually integrate the upload SDK (not recommended)

  1. Download the upload framework VODUpload.framework. For more information, see SDK download.
  2. Download the OSS framework AliyunOSSiOS.framework. For more information, see SDK download.
  3. In Xcode, drag the VODUpload.framework and AliyunOSSiOS.framework to the Target project. In the dialog box that appears, select Copy items if needed.
  4. Add the following system dependencies:
    1. AVFoundation.framework
    2. CoreMedia.framework
    3. SystemConfiguration.framework
    4. MobileCoreServices.framework
    5. libresolv.9.tbd

Configure the project

After the upload SDK is integrated, open the project and modify the configuration.

  1. Choose Build Setting > Linking > Other Linker Flags.
  2. Add -ObjC.