Skip to content

SwiftPlate fails if there are other files in the directory #50

@BalestraPatrick

Description

@BalestraPatrick

Hey John!

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.
screen shot 2017-04-08 at 7 06 41 pm

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions