tuist / XcodeProj

πŸ“ Read, update and write your Xcode projects

Home Page:https://xcodeproj.tuist.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

invalidateUUIDs() + write() loses references

timothycosta opened this issue Β· 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.

Hey @timothycosta πŸ‘‹

I agree with you, we'd appreciate any PR for this πŸ™Œ

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.

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.