TheMartas29 commented on issue #120:
URL:
https://github.com/apache/cordova-node-xcode/issues/120#issuecomment-1284388353
Yeah, I guess I was able to do it with this code:
```
project.parse(function (err) {
var files = fs.readdirSync(PROJECT_PATH + "groupName/");
var group = project.pbxCreateGroup('groupName', 'projectName/groupName');
var classesKey = project.findPBXGroupKey({name: 'CustomTemplate'});
//idk what CustomTemplate means
project.addToPbxGroup(group, classesKey);
files.forEach(file => {
if (file.indexOf(".h") >= 0) {
project.addHeaderFile(file, null, group);
} else {
project.addSourceFile(file, null, group);
}
});
});
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]