
I am using version 1.3.7 and facing with an issue when I try to run a swift function. Is there any example function/documentation about how to deploy a swift function? It was quite challenging for me to adding to the env and downloading the openruntimes swift image by myself.

I believe the syntax for 1.3x was like this:
func main(req: RequestValue, res: RequestResponse) throws -> RequestResponse {
let payload = req.payload.isEmpty ? "No payload provided. Add custom data when executing function" : req.payload
let secretKey = req.variables["SECRET_KEY"] ?? "SECRET_KEY variable not found. You can set it in Function settings."
let randomNumber = Double.random(in: 0...1)
let trigger = req.variables["APPWRITE_FUNCTION_TRIGGER"]
return res.json(data: [
"message": "Hello from Appwrite!",
"payload": payload,
"secretKey": secretKey,
"randomNumber": randomNumber,
"trigger": trigger,
])
}

I have the following linking error

@Binyamin do you have any idea? 🙏

How are you deploying the function?

I am deploying manually with an entry point

Can you try with appwrite-cli
Recommended threads
- Domain not available
Message: After creating a function using the Functions API, the domain is not created automatically, even though the documentation says a domain should be creat...
- rror creating Appwrite user: User (role:...
I do not understand, I have tryied everything tryable to make this error go away, I have absolutely no more ideas on how should I correct this. Anything can hel...
- Realtime listener does not get update wh...
listener (flutter) ``` realtime .subscribe(['databases.6882943XXXXX.tables.public.rows.main']) .stream .listen((message) { print(message); });``` ...
