(self)
| 2617 | return the_phase |
| 2618 | |
| 2619 | def HeadersPhase(self): |
| 2620 | headers_phase = self.GetBuildPhaseByType(PBXHeadersBuildPhase) |
| 2621 | if headers_phase is None: |
| 2622 | headers_phase = PBXHeadersBuildPhase() |
| 2623 | |
| 2624 | # The headers phase should come before the resources, sources, and |
| 2625 | # frameworks phases, if any. |
| 2626 | insert_at = len(self._properties["buildPhases"]) |
| 2627 | for index, phase in enumerate(self._properties["buildPhases"]): |
| 2628 | if isinstance( |
| 2629 | phase, |
| 2630 | ( |
| 2631 | PBXResourcesBuildPhase, |
| 2632 | PBXSourcesBuildPhase, |
| 2633 | PBXFrameworksBuildPhase, |
| 2634 | ), |
| 2635 | ): |
| 2636 | insert_at = index |
| 2637 | break |
| 2638 | |
| 2639 | self._properties["buildPhases"].insert(insert_at, headers_phase) |
| 2640 | headers_phase.parent = self |
| 2641 | |
| 2642 | return headers_phase |
| 2643 | |
| 2644 | def ResourcesPhase(self): |
| 2645 | resources_phase = self.GetBuildPhaseByType(PBXResourcesBuildPhase) |
no test coverage detected