Closed
Description
Bug report
- I confirm this is a bug with Supabase, not with my own application.
- I confirm I have searched the Docs, GitHub Discussions, and Discord.
Describe the bug
I'm able to build my Swift Vapor app locally with Xcode 16.2, but when I deploy it to my Heroku instance using Swift version 6.0 I get the following error:
/supabase-swift/Sources/Auth/AuthClient.swift:112:26: error: expression is 'async' but is not marked with 'await'
Additional context
git push heroku master
Enumerating objects: 112, done.
Counting objects: 100% (112/112), done.
Delta compression using up to 12 threads
Compressing objects: 100% (81/81), done.
Writing objects: 100% (85/85), 38.27 KiB | 7.65 MiB/s, done.
Total 85 (delta 49), reused 0 (delta 0), pack-reused 0 (from 0)
remote: Updated 315 paths from cfc3c053
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Building on the Heroku-24 stack
remote: -----> Using buildpack: vapor/vapor
remote: -----> Swift app detected
remote: No PACKAGE_DIR config variable is set. Using the repo root.
remote: -----> Using Swift 6.0 (from package .swift-version file)
remote: -----> Installing swiftenv
remote: -----> Installing Swift 6.0
remote: Downloading https://swift.org/builds/swift-6.0-release/ubuntu2404/swift-6.0-RELEASE/swift-6.0-RELEASE-ubuntu24.04.tar.gz
remote: /tmp/swiftenv-6.0- /tmp/codon/tmp/buildpacks/2c03c92bc6b8e2a37603d34bfa3d352f037ddcc4
remote: % Total % Received % Xferd Average Speed Time Time Time Current
remote: Dload Upload Total Spent Left Speed
remote: 100 257 100 257 0 0 3396 0 --:--:-- --:--:-- --:--:-- 3426
remote: 100 294 100 294 0 0 697 0 --:--:-- --:--:-- --:--:-- 697
remote: 100 774M 100 774M 0 0 45.9M 0 0:00:16 0:00:16 --:--:-- 30.3M
remote: /tmp/codon/tmp/buildpacks/2c03c92bc6b8e2a37603d34bfa3d352f037ddcc4
remote: 6.0 has been installed.
remote: -----> Building package (debug configuration, static stdlib)
...
remote: error: emit-module command failed with exit code 1 (use -v to see invocation)
remote: [2287/2423] Emitting module Auth
remote: /tmp/build_8ca0aa3f/.build/checkouts/supabase-swift/Sources/Auth/AuthClient.swift:112:26: error: expression is 'async' but is not marked with 'await'
remote: 110 | )
remote: 111 |
remote: 112 | Task { @MainActor in observeAppLifecycleChanges() }
remote: | |- error: expression is 'async' but is not marked with 'await'
remote: | `- note: calls to instance method 'observeAppLifecycleChanges()' from outside of its actor context are implicitly asynchronous
remote: 113 | }
remote: 114 |