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
- Go 1.25 runtime
So I'm trying to use go 1.25 for my functions and I can only find go-1.23 as a function runtime. So I did some searching and found https://github.com/appwrite/a...
- Python TablesDB Rework
Hi, i starting to rework some older functions to TablesDB list_rows Method. I used list_documents with a resultset with worked fine. Now i tried to get all rows...
- HUGE OUTRAGE IN APPWRITE, I CANNOT ACCES...
I have 2k users trying to access, sending me messages. What am I supposed to do? Please solve this asap.