Skip to content
Back

Swift SDK 13.2.1: Missing AppwriteEnums dependency causes build failure

  • 0
  • 3
  • Apple
zkqrxy
16 Oct, 2025, 22:19

Issue

Build fails with error: Unable to find module dependency: 'AppwriteEnums'

Environment

  • SDK Version: 13.2.1 (swift-for-apple)
  • Xcode: 16.2
  • Platform: iOS 17.0+
  • Installation: Swift Package Manager

Error Details

Unable to find module dependency: 'AppwriteEnums' note: a dependency of main module 'AppwriteModel

File: AppwriteModels/Execution.swift:3

Root Cause

The AppwriteModels target in Package.swift is missing AppwriteEnums as a dependency, but Execution.swift imports it.

Current Package.swift (lines 39-44):

TypeScript
.target(
    name: "AppwriteModels",
    dependencies: [
        "JSONCodable"
    ]
),

Proposed Fix

TypeScript
.target(
    name: "AppwriteModels",
    dependencies: [
        "AppwriteEnums",  // Add this line
        "JSONCodable"
    ]
),

Workaround

Manually patching the downloaded SDK in DerivedData works, but gets reset on clean builds.

Impact

This breaks clean builds for any iOS/macOS project using SDK 13.2.1.

Would appreciate a patch release or guidance on a proper workaround. Happy to submit a PR if helpful! πŸ™

TL;DR
Missing AppwriteEnums dependency in Swift SDK 13.2.1 causing build failure. User found a fix here: https://github.com/appwrite/sdk-for-swift/pull/45. Fix will be released soon.
17 Oct, 2025, 01:05

can we solve this problem together?

17 Oct, 2025, 06:35

have you been getting this same issue ?

17 Oct, 2025, 06:55

got a fix here - https://github.com/appwrite/sdk-for-swift/pull/45, will release soon

1
17 Oct, 2025, 12:13

thanks a whole bunch! i was seriously considering starting from scratch with the REST API instead 😭

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