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

Can't remove resources references from a group #70

Open
akofman opened this issue Oct 7, 2015 · 1 comment
Open

Can't remove resources references from a group #70

akofman opened this issue Oct 7, 2015 · 1 comment

Comments

@akofman
Copy link

akofman commented Oct 7, 2015

I'm trying to remove some splash from the pbxproj :

myProj.parse(function (err) {
  if(err){
    console.log('Error: ' + JSON.stringify(err));
  }
  else{
    // Remove Portrait splascreens
    myProj.removeResourceFile('Default-Portrait~ipad.png');
    myProj.removeResourceFile('Default-Portrait@2x~ipad.png');

    fs.writeFileSync(projectPath, myProj.writeSync());
  }
});

Most of the splash references are well removed except in the group :

    308D05311370CCF300D202BF /* splash */ = {
            isa = PBXGroup;
            children = (
                30B4F2FD19D5E07200D9F7D8 /* Default-667h.png */,
                30B4F2FE19D5E07200D9F7D8 /* Default-736h.png */,
                30B4F2FF19D5E07200D9F7D8 /* Default-Landscape-736h.png */,
                D4A0D8751607E02300AEF8BB /* Default-568h@2x~iphone.png */,
                3088BBB7154F3926009F9C59 /* Default-Landscape@2x~ipad.png */,
                3088BBB8154F3926009F9C59 /* Default-Landscape~ipad.png */,
                3088BBB9154F3926009F9C59 /* Default-Portrait@2x~ipad.png */,
                3088BBBA154F3926009F9C59 /* Default-Portrait~ipad.png */,
                3088BBBB154F3926009F9C59 /* Default@2x~iphone.png */,
                3088BBBC154F3926009F9C59 /* Default~iphone.png */,
            );
            path = splash;
            sourceTree = "<group>";
        };

Is there a way to remove resources from this group ?

@mcgrews3
Copy link
Contributor

This pull request would address this: #82; See here for an example of the removeResourceFile I am proposing. Thanks.

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

No branches or pull requests

2 participants