All Products
Search
Document Center

Simple Log Service:Install Simple Log Service SDK for iOS

Last Updated:Jun 16, 2026

Install Simple Log Service (SLS) SDK for iOS before you use the SDK to call SLS operations.

Prerequisites

Procedure

  1. Create an iOS project.

  2. In the project folder, create a Podfile and add the following dependency import configuration.

    # You must import the following master repositories: 
    source 'https://github.com/CocoaPods/Specs.git'
    source 'https://github.com/aliyun-sls/Specs.git'
    # If you want to use a repository available in the Chinese mainland, you must import the following repository:
    source 'https://gitee.com/aliyun-sls/Specs.git'
    
    pod 'AliyunLogProducer', '~> 4.3.17'

    For more information about versions, see Release notes of Alibaba Cloud Simple Log Service SDK for iOS on GitHub.

  3. In the project folder, run the following command to import the dependencies:

    pod install --repo-update

    After the SDK is installed, you can call SLS SDK operations in the project.

References

What to do next

Get started with Simple Log Service SDK for iOS