Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encoding of its contents can’t be determined #27

Open
OrRon opened this issue Dec 6, 2016 · 2 comments
Open

Encoding of its contents can’t be determined #27

OrRon opened this issue Dec 6, 2016 · 2 comments
Labels

Comments

@OrRon
Copy link

OrRon commented Dec 6, 2016

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.

@JohnSundell JohnSundell added the bug label Jan 8, 2017
@ebaker355
Copy link

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
Copy link

YanSte commented Sep 10, 2019

Up :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants