# Adding Passio SDK into your project

### Install Swift Package for Xcode 14.3 or newer

1. Open your Xcode project.
2. Go to File > Swift Packages > Add Package Dependency.
3. In the "Add Package Dependency" dialog box, paste the URL: [https://github.com/Passiolife/Passio-Nutrition-AI-iOS-SDK-Distribution](https://github.com/Passiolife/Passio-Nutrition-AI-iOS-SDK-Distribution)
4. Click "Next". Xcode will validate the package and its dependencies.
5. In the next dialog box, you'll be asked to specify the version or branch you want to use. You can choose main for the latest version or specify a specific version or branch.
6. After you've made your selection, click "Next".
7. You'll then be prompted to select the targets in your project that should include the package. Check the boxes for the targets you want to include.
8. Click "Finish" to add the package to your project.
9. 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 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://raw.githubusercontent.com/Passiolife/Passio-Nutrition-AI-iOS-SDK-Distribution/main/READMEIMAGES/1AddXCFramework.png" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://github.com/Passiolife/Passio-Nutrition-AI-iOS-SDK-Distribution/raw/main/READMEIMAGES/2EmbedAndSign.png" alt=""><figcaption></figcaption></figure>

### Edit your Info.plist

* If opening from Xcode, right click and select 'open as source code'
* To allow camera usage add:

```
`<key>>NSCameraUsageDescription</key><string>For real-time food recognition</string>`.
```

If at any point you need help from the Passio team, please reach out to us at **support@passiolife.com**

***
