Before you can use Log Service SDK for iOS to call the API operations of Log Service, you must install Log Service SDK for iOS. This topic describes how to install Log Service SDK for iOS.


  • Log Service is activated. For more information, see Activate Log Service.
  • An AccessKey pair is created and obtained. An Alibaba Cloud account has permissions to call all API operations. Therefore, security risks may arise if you use the AccessKey pair of an Alibaba Cloud account. We recommend that you log on as a RAM user that has permissions to call API operations or perform routine O&M. For more information, see AccessKey pair.
  • An iOS development environment is set up. For more information, visit Apple Developer.


  1. Create an iOS project.
  2. In the project directory, create a Podfile file and enter the command that is used to import the dependencies of Log Service SDK for iOS in the file.
    pod 'AliyunLogProducer', '~> 2.2.25'
  3. In the project directory, run the following command to import the dependencies:
    pod install
    After Log Service SDK for iOS is installed, you can call the API operations that are encapsulated in the SDK in the project.

What to do next

Get started with Log Service SDK for iOS