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
- Github App "Failed to retrieve access to...
When trying to connect the Github App on 1.8.1 I recieve this error: ```[Error] Method: GET [Error] URL: /v1/vcs/github/callback [Error] Type: Exception [Error]...
- Update from 1.8 to 1.8.1 failing
I have spent the past 2 hours trying to figure this out but I really dont know what to do. 1.8. was a fresh install because the upgrade from 1.7.4 was a total m...
- Realtime not working for some tables
Hi, I've got an issue where I can setup a realtime connection to listen to some tables, but some not all. I have two tables `history` and `users`. Both can be ...