diff --git a/pbxproj/pbxsections/XCLocalSwiftPackageReference.py b/pbxproj/pbxsections/XCLocalSwiftPackageReference.py new file mode 100644 index 0000000..d7cb8b6 --- /dev/null +++ b/pbxproj/pbxsections/XCLocalSwiftPackageReference.py @@ -0,0 +1,14 @@ +from pbxproj import PBXGenericObject + + +class XCLocalSwiftPackageReference(PBXGenericObject): + @classmethod + def create(cls, relative_path): + return cls().parse({ + '_id': cls._generate_id(), + 'isa': cls.__name__, + 'relativePath': relative_path + }) + + def _get_comment(self): + return f'XCLocalSwiftPackageReference "{self.relativePath}"'