Following Hello World tutorial on macos fails #8
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Describe the bug
Following https://github.com/AparokshaUI/adwaita-swift/blob/main/user-manual/Basics/HelloWorld.md on macos 14.4 and get import error
To Reproduce
Do the tutorial on macos 14.4
See it fail on swift run step.
Expected behavior
What the tutorial says.
Additional context
Sorry, there is a step missing in that tutorial.
You have to add the dependency to the HelloWorld target as well:
Thank you for reporting this! Does it work after adding the dependency to the target?
It goes further and gives a different error:
Thanks for the help. I'll send a PR for the tutorial if that is acceptable.
I added
and it builds and runs. THANKS!
I've followed the tutorial on macOS myself now and got the error
'main' attribute cannot be used in a module that contains top-level code. As soon as I renamed themain.swifttoHelloWorld.swiftthe error disappeared. I'll have to add this to the tutorial if there's no more elegant solution.I'll add the macOS version specification to the tutorial as well.
I added the file name thing as well in
409dfb6. Thanks for reporting!