> For the complete documentation index, see [llms.txt](https://hinkal-team.gitbook.io/hinkal/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hinkal-team.gitbook.io/hinkal/hinkal-mobile-sdk/ios/installation.md).

# Installation

Add the Hinkal iOS SDK to your project with Swift Package Manager.

### Requirements

* iOS 16.0+
* Swift 5.7+
* Xcode 15+

### Add the package

The SDK is distributed as a Swift package. A prebuilt `Hinkal.xcframework` binary is attached to each GitHub release, and Swift Package Manager downloads and checksum-verifies it automatically - no git-lfs, no manual framework vendoring.

#### In Xcode

1. **File → Add Package Dependencies…**
2. Enter the package URL:

   ```
   https://github.com/Hinkal-Protocol/hinkal-sdk
   ```
3. Choose the version (for example `0.1.1`) and add the **Hinkal** library to your app target.

#### In Package.swift

For a SwiftPM-based project, add it to your dependencies:

```swift
dependencies: [
    .package(url: "https://github.com/Hinkal-Protocol/hinkal-sdk", from: "0.1.1")
],
targets: [
    .target(
        name: "YourApp",
        dependencies: [
            .product(name: "Hinkal", package: "hinkal-sdk")
        ]
    )
]
```

#### With XcodeGen

If your project uses XcodeGen, declare the package in `project.yml`:

```yaml
packages:
  Hinkal:
    url: https://github.com/Hinkal-Protocol/hinkal-sdk
    from: '0.1.1'

targets:
  YourApp:
    dependencies:
      - package: Hinkal
```

Then run `xcodegen generate`.

### Verifying installation

```swift
import Hinkal

var err: NSError?
let chains = MobileSupportedChainsJSON(&err)
```
