in lib/pbxProject.js [364:393]
pbxProject.prototype.removeFramework = function(fpath, opt) {
var embed = opt && opt.embed;
if (opt) {
delete opt.embed;
}
var file = new pbxFile(fpath, opt);
file.target = opt ? opt.target : undefined;
this.removeFromPbxBuildFileSection(file); // PBXBuildFile
this.removeFromPbxFileReferenceSection(file); // PBXFileReference
this.removeFromFrameworksPbxGroup(file); // PBXGroup
this.removeFromPbxFrameworksBuildPhase(file); // PBXFrameworksBuildPhase
if (opt && opt.customFramework) {
this.removeFromFrameworkSearchPaths(file);
}
opt = opt || {};
opt.embed = true;
var embeddedFile = new pbxFile(fpath, opt);
embeddedFile.fileRef = file.fileRef;
this.removeFromPbxBuildFileSection(embeddedFile); // PBXBuildFile
this.removeFromPbxEmbedFrameworksBuildPhase(embeddedFile); // PBXCopyFilesBuildPhase
return file;
}