node-xcode icon indicating copy to clipboard operation
node-xcode copied to clipboard

add resource to Resources/<subfolder> - is this possible?

Open dmytro-shchurov opened this issue 11 years ago • 1 comments

I wonder is this lack of property of options argument, or missing functionality? Need to add new image into /Resources/splash but instead it adds it to /Resources PS I'm apologize in case this issue is rather a discussion forum item, but I see no appropriate link I can use for that. PSS For now I've solved the issue by overwriting addToResourcePbxGrooup() method with

xcode.project.prototype.addToResourcePbxGrooup = function (file) {
    var pluginsGroup = this.pbxGroupByName('splash');
    pluginsGroup.children.push(pbxGroupChild(file));
};

It would be nice to specify the group in opts of addResourceFile() method, and pass it into addToResourcePbxGrooup

dmytro-shchurov avatar Apr 29 '14 12:04 dmytro-shchurov

I have created a pull request that would add this feature.

See example here

mcgrews3 avatar Mar 16 '16 18:03 mcgrews3