Installation

Follow these steps to include the SDK into your mobile application 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

  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

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

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>`.

Last updated