XcodeProj icon indicating copy to clipboard operation
XcodeProj copied to clipboard

invalidateUUIDs() + write() loses references

Open timothycosta opened this issue 3 years ago • 1 comments

Context 🕵️‍♀️

Trying to make Xcode project deterministic for easy diffing the same as this issue.

let xcodeproj = try XcodeProj(path: projectPath)
xcodeproj.pbxproj.invalidateUUIDs()
let settings = PBXOutputSettings(projFileListOrder: .byFilename)
try xcodeproj.write(path: projectPath, outputSettings: settings)

What 🌱

If I run the above code on this project twice, the first time succeeds. The second time I get an error: Error raised at top level: PBXObject with reference "2BAA80704959AADB23CA8DB5F222F967" not found.

The attached project file has two identical (except for platform) frameworks Localization and Localization Watch. It seems like XcodeProj thinks they're the same thing, and removes one.

Proposal 🎉

XcodeProj should be smart enough to realize they're different and not delete the reference.

timothycosta avatar May 26 '22 03:05 timothycosta

Hey @timothycosta 👋

I agree with you, we'd appreciate any PR for this 🙌

fortmarek avatar May 27 '22 10:05 fortmarek

Hola 👋,

We want to inform you that the issue has been marked as stale. This means that there hasn't been any activity or updates on it for quite some time, and it's possible that it may no longer be relevant or actionable. If you still believe that this issue is valid and requires attention, please provide an update or any additional information that can help us address it. Otherwise, we may consider closing it in the near future. Thank you for your understanding.

github-actions[bot] avatar Jun 27 '23 02:06 github-actions[bot]

Hola 👋,

We want to inform you that we have decided to close this stale issue as there hasn't been any activity or response regarding it after marking it as stale.

We understand that circumstances may have changed or priorities may have shifted, and that's completely understandable. If you still believe that this issue needs to be addressed, please feel free to reopen it and provide any necessary updates or additional information.

We appreciate your understanding and look forward to your continued contributions to the project.

Thank you.

github-actions[bot] avatar Jul 02 '23 02:07 github-actions[bot]