Skip to content

Commit 304cada

Browse files
committed
fix(pbxproj): missing object's member build phase
1 parent 23e5103 commit 304cada

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/pbxproj/object/meta.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ use enum_variant_macros::FromVariants;
1212
pub enum PBXObject {
1313
/// Abstraction over `PBXAggregateTarget`, `PBXLegacyTarget`, and `PBXNativeTarget`
1414
PBXTarget(Rc<RefCell<PBXTarget>>),
15+
/// Abstraction over Build phases
16+
PBXBuildPhase(Rc<RefCell<PBXBuildPhase>>),
1517
/// A Kind for defining build configurations
1618
XCBuildConfiguration(Rc<RefCell<XCBuildConfiguration>>),
1719
/// File referenced by a build phase, unique to each build phase.
@@ -31,8 +33,6 @@ pub enum PBXObject {
3133
PBXProject(Rc<RefCell<PBXProject>>),
3234
/// A Kind representing an abstract parent for specialized targets.
3335
XCRemoteSwiftPackageReference(Rc<RefCell<XCRemoteSwiftPackageReference>>),
34-
/// A Kind representing shell script build phase.
35-
PBXShellScriptBuildPhase(Rc<RefCell<PBXShellScriptBuildPhase>>),
3636
/// A Kind representing an abstract parent for specialized targets.
3737
XCSwiftPackageProductDependency(Rc<RefCell<XCSwiftPackageProductDependency>>),
3838
/// A Kind representing a reference to other targets through content proxies.
@@ -82,8 +82,7 @@ impl PBXObject {
8282
PBXObjectKind::XCVersionGroup => into!(XCVersionGroup, map, objects),
8383

8484
PBXObjectKind::PBXTarget(_) => into!(PBXTarget, map, objects),
85-
86-
PBXObjectKind::PBXBuildPhase(_) => into!(PBXBuildFile, map, objects),
85+
PBXObjectKind::PBXBuildPhase(_) => into!(PBXBuildPhase, map, objects),
8786
kind => anyhow::bail!("{kind:?} isn't supported"),
8887
})
8988
}

0 commit comments

Comments
 (0)