Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Bug Report: Swift Template does not compile #261

Closed
2 tasks done
atacan opened this issue Jan 2, 2024 · 2 comments
Closed
2 tasks done

馃悰 Bug Report: Swift Template does not compile #261

atacan opened this issue Jan 2, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@atacan
Copy link

atacan commented Jan 2, 2024

馃憻 Reproduction steps

Open the swift/starter folder in Xcode

馃憤 Expected behavior

  • The code compiles
  • Witt the current Package.swift content, the folder structure should be Sources/swift-function/main.swift

馃憥 Actual Behavior

  • Folder and file structure is wrong
  • There are no types named RuntimeContext and RuntimeOutput

馃幉 Appwrite version

Version 1.4.x

馃捇 Operating system

MacOS

馃П Your Environment

AppWrite 1.4.13

馃憖 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

馃彚 Have you read the Code of Conduct?

ScrShot 2024-01-02 at 13 41 16@2x

@atacan atacan added the bug Something isn't working label Jan 2, 2024
@RV784
Copy link

RV784 commented Jan 4, 2024

I don't think you can build Appwrite functions locally :) They're a file depended upon by the Appwrite Functions runtimes.
Have you deployed the starter function to your Appwrite instance? For me it works that way.

@atacan
Copy link
Author

atacan commented Jan 5, 2024

Hello @RV784, in that case, how are we supposed to develop and test the swift package before deploying it to Appwrite?

This is essentially Appwrite creating its own SPM structure with types that are not available at compile time. I wish there was a plan to improve this.

@loks0n loks0n closed this as not planned Won't fix, can't repro, duplicate, stale May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants