Closed michalszelagsonos closed 5 months ago
Describe the bug I have a xcode project where there is a local package defined as follows:
packageReferences = ( BABB55E92B30EE41003E224D /* XCLocalSwiftPackageReference "Foo" */ ); ... /* Begin XCLocalSwiftPackageReference section */ BABB55E92B30EE41003E224D /* XCLocalSwiftPackageReference "Foo" */ = { isa = XCLocalSwiftPackageReference; relativePath = Foo; }; /* End XCLocalSwiftPackageReference section */
If I load the project and save it like this:
project = pbxproj.XcodeProject.load(project_file) project.save()
I end up with this:
packageReferences = ( BABB55E92B30EE41003E224D ); ... /* Begin XCLocalSwiftPackageReference section */ BABB55E92B30EE41003E224D = { isa = XCLocalSwiftPackageReference; relativePath = Foo; }; /* End XCLocalSwiftPackageReference section */
Looks like the comment markers get stripped since there is no XCLocalSwiftPackageReference object type in the project to support this.
XCLocalSwiftPackageReference
System information
4.0.0
3.11
15.2
To Reproduce Steps to reproduce the behavior:
project = pbxproj.XcodeProject.load("path to your project.pbxproj file") project.save()
project.pbxproj
Expected behavior Loading and saving the project should preserve the entries, as is.
Note, I think I know how to fix this, I may take a shot at opening a PR with a fix.
Describe the bug I have a xcode project where there is a local package defined as follows:
If I load the project and save it like this:
I end up with this:
Looks like the comment markers get stripped since there is no
XCLocalSwiftPackageReference
object type in the project to support this.System information
4.0.0
3.11
15.2
To Reproduce Steps to reproduce the behavior:
project.pbxproj
file, you will see thatXCLocalSwiftPackageReference
comments are gone in the file.Expected behavior Loading and saving the project should preserve the entries, as is.