All Products
Search
Document Center

Simple Log Service:Install Simple Log Service SDK for iOS

Last Updated:Dec 08, 2025

Before using Simple Log Service (SLS) SDK for iOS to call the operations of SLS, install SLS SDK for iOS.

Prerequisites

Procedure

  1. Create an iOS project.

  2. In the project folder, create a Podfile and enter the command that is used to import the dependencies of SLS SDK for iOS in the file.

    # 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 SLS SDK for iOS is installed, you can call the operations that are encapsulated in the SDK in the project.

References

What to do next

Get started with Simple Log Service SDK for iOS