liftoffcli / liftoff

CLI for creating and configuring new Xcode projects
MIT License
1.6k stars 106 forks source link

Parsing error: `Data missing closing '>'` #291

Open juniorgarcia opened 6 years ago

juniorgarcia commented 6 years ago

While liftoff of processing my file project.pbxproj it raises an error "Data missing closing '>'". Here my stack trace:

Setting the project indentation level to 4
/usr/local/Cellar/liftoff/1.8.2/vendor/gems/nanaimo-0.2.3/lib/nanaimo/reader.rb:284:in `raise_parser_error': [!] Data missing closing '>' (Nanaimo::Reader::ParseError)
  #  -------------------------------------------
  #             proxyType = 1;
  #             remoteGlobalIDString = 89D30F911FD0D8CE001AF760;
36>             remoteInfo = <%= project_name %>;
                              ^
  #         };
  #  /* End PBXContainerItemProxy section */
  #  -------------------------------------------
    from /usr/local/Cellar/liftoff/1.8.2/vendor/gems/nanaimo-0.2.3/lib/nanaimo/reader.rb:207:in `parse_data'
    from /usr/local/Cellar/liftoff/1.8.2/vendor/gems/nanaimo-0.2.3/lib/nanaimo/reader.rb:135:in `parse_object'
    from /usr/local/Cellar/liftoff/1.8.2/vendor/gems/nanaimo-0.2.3/lib/nanaimo/reader.rb:192:in `parse_dictionary'
    from /usr/local/Cellar/liftoff/1.8.2/vendor/gems/nanaimo-0.2.3/lib/nanaimo/reader.rb:131:in `parse_object'
    from /usr/local/Cellar/liftoff/1.8.2/vendor/gems/nanaimo-0.2.3/lib/nanaimo/reader.rb:192:in `parse_dictionary'
    from /usr/local/Cellar/liftoff/1.8.2/vendor/gems/nanaimo-0.2.3/lib/nanaimo/reader.rb:131:in `parse_object'
    from /usr/local/Cellar/liftoff/1.8.2/vendor/gems/nanaimo-0.2.3/lib/nanaimo/reader.rb:192:in `parse_dictionary'
    from /usr/local/Cellar/liftoff/1.8.2/vendor/gems/nanaimo-0.2.3/lib/nanaimo/reader.rb:131:in `parse_object'
    from /usr/local/Cellar/liftoff/1.8.2/vendor/gems/nanaimo-0.2.3/lib/nanaimo/reader.rb:106:in `parse!'
    from /usr/local/Cellar/liftoff/1.8.2/vendor/gems/xcodeproj-1.5.3/lib/xcodeproj/plist.rb:27:in `read_from_path'
    from /usr/local/Cellar/liftoff/1.8.2/vendor/gems/xcodeproj-1.5.3/lib/xcodeproj/project.rb:200:in `initialize_from_file'
    from /usr/local/Cellar/liftoff/1.8.2/vendor/gems/xcodeproj-1.5.3/lib/xcodeproj/project.rb:102:in `open'
    from /usr/local/Cellar/liftoff/1.8.2/rubylib/liftoff/xcodeproj_helper.rb:125:in `xcode_project'
    from /usr/local/Cellar/liftoff/1.8.2/rubylib/liftoff/xcodeproj_helper.rb:39:in `set_indentation_level'
    from /usr/local/Cellar/liftoff/1.8.2/rubylib/liftoff/launchpad.rb:75:in `set_indentation_level'
    from /usr/local/Cellar/liftoff/1.8.2/rubylib/liftoff/launchpad.rb:40:in `perform_project_actions'
    from /usr/local/Cellar/liftoff/1.8.2/rubylib/liftoff/launchpad.rb:9:in `liftoff'
    from /usr/local/Cellar/liftoff/1.8.2/rubylib/liftoff/cli.rb:10:in `run'
    from /usr/local/bin/liftoff:14:in `<main>'

Here is the a part of my project.pbxproj file.

/* Begin PBXContainerItemProxy section */
  89D30FA71FD0D8CE001AF760 /* PBXContainerItemProxy */ = {
    isa = PBXContainerItemProxy;
    containerPortal = 89D30F8A1FD0D8CE001AF760 /* Project object */;
    proxyType = 1;
    remoteGlobalIDString = 89D30F911FD0D8CE001AF760;
    remoteInfo = <%= project_name %>; // Here is the error
  };
/* End PBXContainerItemProxy section */

Here is the line the error is being trigerred: