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
- Avatar URLs are using server IP address ...
Issue: Avatar URLs are using server IP address instead of configured domain Environment: Appwrite Version: 1.8.0 Setup: Self-hosted on Google Compute Engine wi...
- An example of using ONNX model?
An example of using ONNX model?
- Function execution queue is "Clogged"
Hello, I made the very stupid mistake of creating a function that executes itself every time it fails. Naturally it failed a lot. Now, I can't execute any other...