GT2/GT2-iOS/node_modules/react-native/local-cli/link/ios/removeFromPbxReferenceProxy...

16 lines
420 B
JavaScript
Raw Normal View History

2018-02-12 17:26:06 +00:00
/**
* Every file added to the project from another project is attached to
* `PBXItemContainerProxy` through `PBXReferenceProxy`.
*/
module.exports = function removeFromPbxReferenceProxySection(project, file) {
const section = project.hash.project.objects.PBXReferenceProxy;
for (var key of Object.keys(section)) {
if (section[key].path === file.basename) {
delete section[key];
}
}
return;
};