Back

Swift SDK

  • 0
  • Users
  • Apple
Alexey
30 Jan, 2024, 18:15

I can't understand how to install swift sdk. Where I need to add

TypeScript
    dependencies: [
        .package(url: "git@github.com:appwrite/sdk-for-apple.git", from: "4.0.2"),
    ],

and

TypeScript
    targets: [
        .target(
            name: "YourAppTarget",
            dependencies: [
                .product(name: "", package: "sdk-for-apple")
            ]
        ),

Do I need to add Package Swift in my project or I should to add it here(photo)?

TL;DR
Developers are confused about installing the Swift SDK. They are unsure where to add the given code snippets for dependencies and targets. They are also unsure if they need to add the Package Swift in their project or if it should be added in the specified location. Solution: To install the Swift SDK, developers need to add the given code snippets for dependencies and targets in their project's Swift Package Manager file. They do not need to add the Package Swift separately.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more