Skip to main content

iOS Installation

Add the Lovina Chat SDK to your iOS project. The SDK requires iOS 15.0+, Swift 5.9+, and Xcode 15+.

Using Xcode UI

  1. Open your project in Xcode.
  2. Go to File > Add Package Dependencies...
  3. Enter the repository URL:
    https://your-repo-url.com/lovina-chat-sdk
  4. Set the package rule to Up to Next Major Version (starting from 1.0.0).
  5. Select the LovinaChatSDK library and add it to your target.

Using Package.swift

If your project uses a Package.swift manifest, add the dependency:

dependencies: [
.package(url: "https://your-repo-url.com/lovina-chat-sdk", from: "1.0.0")
]

Then add the product to your target:

.target(
name: "YourApp",
dependencies: [
.product(name: "LovinaChatSDK", package: "lovina-chat-sdk")
]
)

Verify Installation

Import the SDK in any Swift file to confirm it is linked correctly:

import LovinaChatSDK

Build the project. If it compiles without errors, the SDK is installed.

Next Steps

Once installed, head to Usage to integrate the chat widget into your app.