SwiftPlate icon indicating copy to clipboard operation
SwiftPlate copied to clipboard

Encoding of its contents can’t be determined

Open OrRon opened this issue 9 years ago • 2 comments

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.

OrRon avatar Dec 06 '16 05:12 OrRon

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.

ebaker355 avatar Apr 22 '17 13:04 ebaker355

Up :)

YanSte avatar Sep 10 '19 13:09 YanSte