-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Same target attributes but triggers value mismatch #119
Comments
Hi @carrepbearep, many thanks for the very detailed ticket. I think I understand the source of this issue, but wasn't able to reproduce it by just using Xcode 14. The capabilities toggled in the Xcode UI are reflected in the entitlements file, not in the xcodeproj file itself (perhaps I missed some settings). |
Thanks for your response @marciniwanicki !! |
Thanks @carrepbearep for checking the branch and instant feedback, I truly appreciate it. It's very likely the implementation isn't quire right. I've just pushed a small update to also sort "target attributes" (20fcbb7), not sure if that will help. |
Thank you so much for your help!! These changes worked on my project files! Seems like sorting them did the trick :) Would you still like a sample of my project file? Which parts would be most helpful to you to see? Mine is rather lengthy (~50,000 lines) |
@carrepbearep, glad the fix it working :) If you can paste here just the "SystemCapabilities" dictionary, that would be helpful, alternatively I can retype it or get it via OCR :) ie no worries if you are busy. I will try to extend out fixtures. |
Heres the dictionary, let me know if you need anything else!
|
Many thanks @carrepbearep, that's exactly what I needed. I will try to make the branch ready for PR tomorrow. |
Sounds good, keep me updated! |
Hi @carrepbearep, we're almost there :) I will ask @kwridan on Monday to review the PR (#122), and if all goes well, the same day we will release 0.10.0. |
That's great!! Thanks for the update :) Let me know once it's been released! |
Describe the bug
For my project file, I've added several
SystemCapabilities
attributes to the project file (shown in the screenshot). However, when runningxcdiff
between the project file and its exact duplicate, the tool picks up on these attribute differences and triggers a Value Mismatch. The attributes are still the same even in the diff log, just listed in different orders.Additionally, every time
xcdiff
is run on the same 2 project files, theSystemCapabilities
attribute order for both of them changes, without changing the project file itself.I would appreciate any help with this bug!! Thank you!
To Reproduce
Steps to reproduce the behavior:
SystemCapabilities
attributes to a target in the project filexcdiff
on the project file and its duplicateExpected behavior
xcdiff should not pick up on differences between the project files because their attributes are the same. The order of the attributes should not matter.
Screenshots
Environment (please complete the following information):
Additional context
I am using
XcodeGen
to generate the project file. However, it generates the same attributes in the same order every time.The text was updated successfully, but these errors were encountered: