# Installation

### Using Swift Package Manager (Recommended)

* To add a Passio SDK as package dependency to your Xcode project, select `File` > `Add Package Dependency` and enter following repository URL\
  [https://github.com/Passiolife/Passio-Nutrition-AI-iOS-SDK-Distribution](https://github.com/Passiolife/Passio-Nutrition-AI-iOS-SDK-Distribution)
* Click "Next". Xcode will validate the package and its dependencies.
* In the next dialog box, you'll be asked to specify the version or branch you want to use. Decide whether your project accepts updates to a package dependency "Up to the next major version" or "Up to the next minor version". To be more restrictive, select a specific version range or an exact version. Major versions tend to have more significant changes than minor versions, and may require you to modify your code when they update.

<figure><img src="https://872966647-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FES2kGechp4srgCTrBTxs%2Fuploads%2FfB6yvrLTR8XXaWe5ynoM%2FScreenshot%202024-10-31%20at%2011.46.44%E2%80%AFAM.png?alt=media&#x26;token=be6db557-d57b-4228-a830-03367ee62c3c" alt=""><figcaption></figcaption></figure>

* Xcode will download and add the `PassioNutritionAISDK` to your project. You can now import and start using the `PassioNutritionAISDK`.

### Manual Installation (For Xcode lower than version 14.3)

* Download the `PassioNutritionAISDK.xcframework.zip` file from [https://github.com/Passiolife/Passio-Nutrition-AI-iOS-SDK-Distribution/blob/main/PassioNutritionAISDK.xcframework.zip](https://github.com/Passiolife/Passio-Nutrition-AI-iOS-SDK-Distribution/blob/main/PassioNutritionAISDK.xcframework.zip)
* Unzip it and drag and drop it into your project. Make sure to select "Copy items if needed".

<figure><img src="https://872966647-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FES2kGechp4srgCTrBTxs%2Fuploads%2Fo08tWxVAf4zsnhQxNqvv%2Fsdk1.avif?alt=media&#x26;token=588133d8-0050-48c7-8d93-eea3876e0d70" alt=""><figcaption></figcaption></figure>

* In project "General" -> "Frameworks, Libraries and Embedded Content" Change to "Embed & Sign"

<figure><img src="https://872966647-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FES2kGechp4srgCTrBTxs%2Fuploads%2FxM5VvrBwIXV7dtfAqBj8%2Fsdk2.webp?alt=media&#x26;token=6613b981-2520-4077-ac02-89ed13276b7a" alt=""><figcaption></figcaption></figure>
