xcake: XCake generating corrupted .xcodeproj file

I’m attempting to create a simple XCake file:

  application_for :ios, 9.0 do |target|
      target.name = "Samsao" 
  end

After successfully running xcake make, the .xcodeproj file that was generated refuses to open. I’, getting the following error: xxxx.xcodeproj cannot be opened because the project file cannot be parsed

Has anybody encountered this before? Any clue as to what could be going on?

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 19 (5 by maintainers)

Most upvoted comments

Cool, at least we’ve narrowed it down… So it’s potentially due to a more recent version of xcodeproj ?

@kirakik

  • Use your text editor (Sublime Text, Atom, etc.) to open YourProject.xcodeproj/project.pbxproj file
  • Around line 4, there should be something like classes = ;, change it to classes = { };
  • Save

See if it works for you.

This should be xcodeproj 1.4.1 bug? It works fine in xcodeproj 1.3.3. (ref: https://github.com/jcampbell05/xcake/issues/111#issuecomment-262260610) cc @maximkhatskevich @jcampbell05