> For the complete documentation index, see [llms.txt](https://docs.luciq.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.luciq.ai/ios/setup-luciq-for-ios/integrate-luciq-on-ios/updating-the-sdk.md).

# Updating the SDK

Update the Luciq iOS SDK to the latest or a pinned version, with instructions for Swift Package Manager in Xcode, CocoaPods, and Carthage.

You can easily update the Luciq SDK for each platform by following the instructions outlined below. If you wish to update to a specific version (for example, 19.6.0), ensure that your configuration files (Package.swift,Cartfile or Podfile) reflect this version accordingly.

## Swift Package Manager (SPM)

### Updating via Xcode Interface:

1. Open your project in Xcode.
2. In the **Project Navigator**, scroll to the **Package Dependencies** group at the bottom and expand it.
3. Right-click **luciq** → **Update Package**.

### Updating via Command Line

#### To Update to the Latest Compatible Version:

1. In your Package.swift, add:

```
.package(url: "https://github.com/luciqai/luciq-ios-sdk", from: "19.6.0")
```

2. Then, run:

```
swift package update
```

#### To Update to a Specific Version (e.g., 19.6.0):

1. In your Package.swift, specify:

```
.package(url: "https://github.com/luciqai/luciq-ios-sdk", .exact("19.6.0"))
```

2. Finally, execute:

```
swift package update
```

***

## CocoaPods

{% hint style="danger" %}
CocoaPods registry goes read-only on **Dec 2, 2026**, you will not receive updates, fixes, or new features. Existing projects can follow the [Migrating from CocoaPods to SPM](/ios/setup-luciq-for-ios/integrate-luciq-on-ios/migrating-from-cocoapods-to-spm.md) guide
{% endhint %}

To update to the latest version of Luciq, use the following command:

```
pod update Luciq
```

If you need to update to a specific version (e.g., 19.6.0), specify it in your Podfile like this:

```
pod 'Luciq', '19.6.0'
```

After making the change, run:

```
pod install
```

***

## Carthage

To update to the latest version of Luciq, execute:

```
carthage update
```

For a specific version, indicate it in your Cartfile as follows:

```
github "luciqai/luciq-ios-sdk" == 19.6.0
```

Then, run:

```
carthage update
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.luciq.ai/ios/setup-luciq-for-ios/integrate-luciq-on-ios/updating-the-sdk.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
