JohnSundell / SwiftPlate

Easily generate cross platform Swift framework projects from the command line
MIT License
1.77k stars 88 forks source link

Encoding of its contents can’t be determined #27

Open OrRon opened 7 years ago

OrRon commented 7 years ago

Hi,

I was trying to use the generator and got this error in the generation phase:

Error: Error Domain=NSCocoaErrorDomain Code=264 "The file “UserInterfaceState.xcuserstate” couldn’t be opened because the text encoding of its contents can’t be determined." UserInfo={NSFilePath=/Users/or/dev/Back/Back.xcodeproj/project.xcworkspace/xcuserdata/or.xcuserdatad/UserInterfaceState.xcuserstate}

Now a second run prints the following error:

Error: Error Domain=NSCocoaErrorDomain Code=516 "“Configs” couldn’t be copied to “dev” because an item with the same name already exists." UserInfo={NSSourceFilePathErrorKey=/Users/or/dev/swiftplate_temp/SwiftPlate/Template/Configs, NSUserStringVariant=( Copy ), NSDestinationFilePath=/Users/or/dev/Configs, NSFilePath=/Users/or/dev/swiftplate_temp/SwiftPlate/Template/Configs, NSUnderlyingError=0x7ff59d6185a0 {Error Domain=NSPOSIXErrorDomain Code=17 "File exists"}}

I tried deleting /Users/or/dev/swiftplate_temp but I get the same error.

Let me know if I can provide addional information, Cheers 🍻 Or.

ebaker355 commented 7 years ago
Welcome to the SwiftPlate project generator 🐣
📦  Where would you like to generate a project? (Leave empty to use current directory)
~/Code/Samples
👮  That path doesn't exist. Try again.
📦  Where would you like to generate a project? (Leave empty to use current directory)
/Users/eric/Code/Samples
📛  What's the name of your project? (Leave empty to use the name of the project folder: Samples)
SwiftPlateSample

The above is what I entered. Unless I'm mistaken, I would expect the path /Users/eric/Code/Samples/SwiftPlateSample/ to be created (just the last path component), and all of the project files to be generated under that path. However, after receiving the error above, I found {PROJECT}.xcodeproj and other files from the template in my /Users/eric/Code/Samples/ path.

YanSte commented 4 years ago

Up :)