
Getting this error when I try to access my bundled resource files from my main function The screenshots attached shows my file structure by adding the resources folder containing html file + in Package.swift file I declared that folder also.

[SWIFT] -> Error: type 'Bundle' has no member 'module'

Hmmm are bundles an iOS thing only? 🧐

Umm…so I was looking at the documentation provided by Apple to add resources to your Swift package. -> https://developer.apple.com/documentation/xcode/bundling-resources-with-a-swift-package

I followed this approach to bundle my html file, is there any appwrite docs about bundling files in Swift package?

While ofc at the end I’m taking the String form for the html and returning it so technically I can save this file as a String variable and it would work fine….but I do want to maintain the practices followed by the specific function I’m trying to implement in Swift (by taking an idea from the already implemented nodeJS function in the templates repository)
Recommended threads
- Corrupted files on AWS S3
Hello! I'm having trouble using S3 storage with appwrite for file uploads. It happens when uploading files from the Javascript SDK or from the console. The fi...
- 500 server error
Pretty please.. trying to run the last 1.7.4 version on a coolify instance.. i searched like everywhere.. i changed the console to 6.0.41 too.. i tried to hardc...
- Help on importing data - error Unknown a...
Hey There! I want to create a local environment on my new computer, i wish to get the information i have on my staging appwrite cloud server. When running mig...
