Since May 1st, 2024, Apple requires all iOS apps to include a privacy manifest.
For more details, see Privacy Manifest.
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
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, typepod init
. APodfile
will be created for you. - Open your
Podfile
and add
Podfile
:
Podfile
pod update
.
Carthage
Carthage is a simple, decentralized dependency manager for Cocoa. To install InstantSearch, add the following line to yourCartfile
:
Cartfile
InstantSearchCore
from the Carthage build directory.