Closed fibbers closed 3 years ago
Thanks for your issue report. Please suggest how to fix this, or make a PR. I am not building for Mac in my own projects currently (Mac support was implemented by a contributor). I could look at this later when I have time.
I'm not sure what's the best solution, but could it be that you're doing pub publish
from a Windows machine which might process symlinks incorrectly (just a guess 🤷)? In that case doing pub publish
from Linux/Mac might fix it, if that's a feasible option.
And otherwise, I can make a simple PR which removes the symlink and just uses a copy of the file. Downside of course is that maintenance now has to be done in 2 places.
Let me know, I'm happy to create a PR with just a copy of the involved file.
I created a PR anyway, just in case the Linux/Mac suggestion might not be a solution.
Either decline the PR or merge it, I'm fine with both 😄
Could you please check if 2.0.2 fixes this. I published the plugin from Mac.
Just updated to 2.0.2 and now it works out of the box 👍 I'll close my PR. Thanks!
Great! Thanks for your help.
First of all, thanks for providing this library 👍
I'm trying to build a Mac desktop app and when Flutter runs
pub get
, I see the following: (stripping prefix dir/opt/flutter/.pub-cache/hosted/pub.dartlang.org/
)and this triggers a Swift error
Expressions are not allowed at the top level
since it's a regular file instead of a symlink.When I remove the file and actually create a symlink towards that path, it works:
now my app starts running.
I tried to create a PR by making the file a symlink, but I saw it already is a symlink.
So maybe
pub
doesn't work too well with symlinks, either during publishing or during downloading 🤷♂️ I did find this issue, which might be related.NB: my
flutter --version
is: