removeFromPbxItemContainerProxySection.js 907 B

12345678910111213141516171819202122232425262728293031
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = removeFromPbxItemContainerProxySection;
  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. * For all files that are created and referenced from another `.xcodeproj` -
  15. * a new PBXItemContainerProxy is created that contains `containerPortal` value
  16. * which equals to xcodeproj file.uuid from PBXFileReference section.
  17. */
  18. function removeFromPbxItemContainerProxySection(project, file) {
  19. const section = project.hash.project.objects.PBXContainerItemProxy;
  20. for (const key of Object.keys(section)) {
  21. if (section[key].containerPortal === file.uuid) {
  22. delete section[key];
  23. }
  24. }
  25. }
  26. //# sourceMappingURL=removeFromPbxItemContainerProxySection.js.map