> 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

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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
