-
Notifications
You must be signed in to change notification settings - Fork 121
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
Incorrect deletion of unused identifiers #38
Comments
yes, it's a known issue. Sent from my mobile device.
|
Hi @truebit |
there is an open PR saying fixed this. You could give it a try. It's a major change, I have no time doing tests. Sent from my mobile device.
|
I tried both the master version and the PR version and both broke my project.pbxproj :( |
yes,it should support. could you send me your project file? Sent from my mobile device.
|
This is still an issue. Any movement on this? |
@simonayzman Nope. This fix would change the core method to do the replacement, it's a major change. But in |
@truebit Do you have a roadmap or suggestions for how you would fix it? In case someone decides to take a crack at it. |
Is there anyone knows replacement of this project? |
@simonayzman You could try to make a mark if you delete a line ends with character like I will try to fix it in one or two days. I would need some problematic project file to test. |
Not 100% sure about the xcode project file format, but I'm imagine that you'd have to ensure that the parentheses or braces would be balanced. Try creating a react native project and uniquifying the iOS project? |
@simonayzman the leading white spaces are the same. I am working on it. would push to a test branch, you could try it later. |
I have push a new branch https://github.com/truebit/xUnique/tree/block_remove to address this issue. |
…ld be removed. and delete all lines when meeting corresponding '};\n'. Matches done by the same count of leading whitespaces. assuming this to be removed line would start with a UUID with leading whitespaces
Looks good to me! Works perfectly on my "bad" file. |
When the script deletes unused identifiers it breaks the JSON structure by deleting only a single line and not a whole JSON object.
Following lines were deleted because of invalid format or no longer being used:
F6DD48671553FA9700A11AA0 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = F6DD485D1553FA9700A11AA0 /* Localizable.strings */; };
F6DD48671553FA9700A11AA0 /* Localizable.strings in Resources */,
F6DD485D1553FA9700A11AA0 /* Localizable.strings */ = {
While leaving:
isa = PBXVariantGroup;
children = (
);
name = Localizable.strings;
path = "/Users/xp/Documents/iphone-app/Resources/Localization/EE";
sourceTree = "<absolute>";
};
The text was updated successfully, but these errors were encountered: