alunny / node-xcode

tools and utilities for working with xcode/ios projects
Apache License 2.0
226 stars 105 forks source link

error: if (project.pbxGroupByName('Plugins').path) #31

Open Michenux opened 10 years ago

Michenux commented 10 years ago

XCode 5.1 with an ios project.

I did a simple test and i got the error:

_/node_modules/xcode/lib/pbxProject.js:696 if (project.pbxGroupByName('Plugins').path) ^ TypeError: Cannot read property 'path' of null at correctForPluginsPath (_/node_modules/xcode/lib/pbxProject.js:696:42)

ldeluca commented 9 years ago

@Michenux did you ever figure this out? I have a similar problem.

Michenux commented 9 years ago

Hi Lisa,

No sorry, i did not find a solution for this.

mroswald commented 8 years ago

This happens when there is no Resources or Plugins group defined but you try to interact (like removing a file from it). You could e.g. wrap your call with a try / catch