2

The error is: The operation couldn't be completed
(IDEFoundation.IDETemplateParseError error 1.)
(I can't upload image.. it's a error window)

I have update the xcode to the version Version 9.2 (9C40b), when I try to create a new file, this error is appear. And after I create a new project I also can't create new file. I don't know why? I have try to reDownload the xcode and update the xcode, but it no use. How should I do?

vinS
  • 1,417
  • 5
  • 24
  • 37
GQF_
  • 21
  • 3

3 Answers3

2

When I tried to use the Coredata and compile the .xcdatamodeld file, it showed the same problem like you.

SOLUTIONS:

  1. If you don't want to use the Coredata, just delete the .xcdatamodeld file in the Build Phases-Compile Sources.

  2. If you want to use the Coredata, just delete the old .xcdatamodeld file and create a new one.

Dharman
  • 30,962
  • 25
  • 85
  • 135
Grayson
  • 41
  • 8
1

It seems you may have your organization named in a way that conflicts with the document template creation process. Check the "Organization" field for your Project, and make sure it does not have characters like underscore. For example, suppose your organization is Apple. I can reproduce your problem by replacing it with __Apple__ , and then trying to add a new file to the project. XCode 9.2 under High Sierra gives me the exact same problem. Hope this helps.

0

Make sure that your data model does not contain special characters in the filename. Underscores caused this error for me. ThisIsAValidName.xcdatamodeld but This_Is_Not_Valid.xcdatamodeld