You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to generate my first SwiftPlate project today 🎉
I cd'ed into my Desktop and then run swiftplate. I have other files in my Desktop and the script failed with the following error.
I expected it to create a new folder with my project name. I think you didn't consider the case where I would like to generate a project in an existing directory with other files. Or maybe it's just that if there are files without standard text encoding (in my case a Sketch file) in the current directory, the script fails.
I expected it to work like Xcode -> New -> Project does. A brand new folder with the project name is created in the chosen directory.
The text was updated successfully, but these errors were encountered:
Yeah, SwiftPlate makes the assumption that you're generating a brand new project in an empty folder. Just mkdir MyProject && cd MyProject && swiftplate and you'll be good to go 👍
That's what I thought. Is there a way to make it fail more gracefully if SwiftPlate tries to read a file with a text encoding that can't be determined?
Hey John!
I tried to generate my first SwiftPlate project today 🎉
I
cd
'ed into my Desktop and then runswiftplate
. I have other files in my Desktop and the script failed with the following error.I expected it to create a new folder with my project name. I think you didn't consider the case where I would like to generate a project in an existing directory with other files. Or maybe it's just that if there are files without standard text encoding (in my case a Sketch file) in the current directory, the script fails.
I expected it to work like
Xcode -> New -> Project
does. A brand new folder with the project name is created in the chosen directory.The text was updated successfully, but these errors were encountered: