removeFromPbxReferenceProxySection.js 784 B

123456789101112131415161718192021222324252627282930
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = removeFromPbxReferenceProxySection;
  6. /**
  7. * Copyright (c) Facebook, Inc. and its affiliates.
  8. *
  9. * This source code is licensed under the MIT license found in the
  10. * LICENSE file in the root directory of this source tree.
  11. *
  12. */
  13. /**
  14. * Every file added to the project from another project is attached to
  15. * `PBXItemContainerProxy` through `PBXReferenceProxy`.
  16. */
  17. function removeFromPbxReferenceProxySection(project, file) {
  18. const section = project.hash.project.objects.PBXReferenceProxy;
  19. for (const key of Object.keys(section)) {
  20. if (section[key].path === file.basename) {
  21. delete section[key];
  22. }
  23. }
  24. }
  25. //# sourceMappingURL=removeFromPbxReferenceProxySection.js.map