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):
.target(
name: "AppwriteModels",
dependencies: [
"JSONCodable"
]
),
Proposed Fix
.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! š
Recommended threads
- AnyCodable not exposed in iOS SDK
I want to write some convenience functions for Teams.list() but the problem is, that I can't use the default <[String : AnyCodable]> as a return type for my con...
- Display an in-app in the user mobile?
Would it be possible to send a message that would display an in-app in the user mobile?
- Swift SDK 13.2.2: Still getting ServiceC...
Hey team - I'm still getting ServiceContextModule linker errors even after updating to SDK 13.2.2. Error: - Undefined symbol: static ServiceContextModule.Servi...