> ## Documentation Index
> Fetch the complete documentation index at: https://algolia.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Install InstantSearch iOS

> Learn how to install InstantSearch iOS with the Swift Package Manager or CocoaPods.

<div className="not-prose algolia-flavor-switcher">
  <div className="afs-dropdown">
    <div className="afs-trigger" role="button" tabIndex="0" aria-haspopup="listbox">
      <span className="afs-current">iOS</span>

      <svg className="afs-chevron lucide lucide-chevron-down" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
        <path d="m6 9 6 6 6-6" />
      </svg>
    </div>

    <ul className="afs-menu" role="listbox">
      <li role="option" aria-selected="false"><a className="afs-option" href="/doc/guides/building-search-ui/installation/js"><span className="afs-option-name">JavaScript</span><span className="afs-option-lib">InstantSearch.js</span></a></li>
      <li role="option" aria-selected="false"><a className="afs-option" href="/doc/guides/building-search-ui/installation/react"><span className="afs-option-name">React</span><span className="afs-option-lib">React InstantSearch</span></a></li>
      <li role="option" aria-selected="false"><a className="afs-option" href="/doc/guides/building-search-ui/installation/vue"><span className="afs-option-name">Vue</span><span className="afs-option-lib">Vue InstantSearch</span></a></li>
      <li role="option" aria-selected="true"><a className="afs-option is-current" href="/doc/guides/building-search-ui/installation/ios"><span className="afs-option-name">iOS</span><span className="afs-option-lib">InstantSearch iOS</span></a></li>
      <li role="option" aria-selected="false"><a className="afs-option" href="/doc/guides/building-search-ui/installation/android"><span className="afs-option-name">Android</span><span className="afs-option-lib">InstantSearch Android</span></a></li>
      <li role="option" aria-selected="false"><a className="afs-option" href="/doc/guides/building-search-ui/installation/flutter"><span className="afs-option-name">Flutter</span><span className="afs-option-lib">Algolia for Flutter</span></a></li>
    </ul>
  </div>
</div>

<Info>
  Starting May 1, 2024,
  Apple requires all iOS apps to include a privacy manifest.
  For more information, see [Privacy manifest](/doc/guides/building-search-ui/resources/privacy-manifest/ios/).
</Info>

To confirm the latest version of InstantSearch iOS, refer to the [list of releases](https://github.com/algolia/instantsearch-ios/releases).

You can add InstantSearch iOS to your project using either [Swift Package Manager](https://swift.org/package-manager/) or [CocoaPods](https://cocoapods.org/about).

## Swift Package Manager

The Swift Package Manager (SPM) is a tool to manage the distribution of Swift code. It's integrated with the Swift build system to automate the process of downloading, compiling, and linking dependencies. Since the release of Swift 5 and Xcode 11, SPM is compatible with the iOS, macOS and tvOS build systems for creating apps.

To use SPM, you should use Xcode 11 to open your project. Click **File -> Swift Packages -> Add Package Dependency**, and enter the URL of the InstantSearch repository (`https://github.com/algolia/instantsearch-ios`). If you consider to use only the business logic modules of InstantSearch, and don't need the set of provided UIKit controllers in your project, you only have to select `InstantSearchCore` in the list of products that show up.

If you're a framework author and use InstantSearch as a dependency, update your Package.swift file:

```swift Swift icon=code theme={"system"}
let package = Package(
    // 8.0.0 ..< 9.0.0
    dependencies: [
        .package(url: "https://github.com/algolia/instantsearch-ios", from: "8.0.0")
    ])
```

## CocoaPods

CocoaPods is a dependency manager for Cocoa projects.

* If you don't have CocoaPods installed on your machine, open your terminal and run `sudo gem install cocoapods`.
* If you don't have a `Podfile` in your project, type `pod init`. A `Podfile` will be created for you.
* Open your `Podfile` and add

To install InstantSearch, add the following line to your `Podfile`:

```ruby Podfile theme={"system"}
pod("InstantSearch", "~> 8.0")
# pod 'InstantSearch/Core' for access to everything except the UI controllers
```

In your terminal, run `pod update`.
