EvanBacon / xcode

super fast pbxproj parser written in TypeScript
https://xcode-seven.vercel.app/
116 stars 6 forks source link

Idempotent rw #8

Closed mfazekas closed 3 months ago

mfazekas commented 3 months ago

Added test to verify that the project remains the same after a parse/build.

There were a few minor differences: 1.) Extra PBXGroup, Project object comments

              };
  -           83CBB9F61A601CBA00E9B192 = {
  +           83CBB9F61A601CBA00E9B192 /* PBXGroup */ = {
                      isa = PBXGroup;
                      children = (
     /* Begin PBXProject section */
  -           83CBB9F71A601CBA00E9B192 /* Project object */ = {
  +           83CBB9F71A601CBA00E9B192 = {
                      isa = PBXProject;

2.) Some versions numbers (_DEPLOYMENT_TARGET and SWIFT_VERSION) .0 is omitted

                              );
                              INFOPLIST_FILE = testproject/Info.plist;
  -                           IPHONEOS_DEPLOYMENT_TARGET = 10.0;
  +                           IPHONEOS_DEPLOYMENT_TARGET = 10;
                              LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
                              OTHER_LDFLAGS = (
                                      "$(inherited)",
                              PRODUCT_NAME = testproject;
                              SWIFT_OPTIMIZATION_LEVEL = "-Onone";
  -                           SWIFT_VERSION = 5.0;
  +                           SWIFT_VERSION = 5;
                              VERSIONING_SYSTEM = "apple-generic";

3.) Octal numers, zero removed

                       isa = PBXProject;
                      attributes = {
  -                           LastUpgradeCheck = 0700;
  +                           LastUpgradeCheck = 700;
                              ORGANIZATIONNAME = AFNetworking;
                              TargetAttributes = {

4.) Comment uses name instead of projectName:

                };
  -           299522331BBF104D00859F49 /* Build configuration list for PBXProject "AFNetworking" */ = {
  +           299522331BBF104D00859F49 /* Build configuration list for PBXProject "AFNetworking iOS" */ = {
                      isa = XCConfigurationList;
                      buildConfigurations = (     
EvanBacon commented 3 months ago

Pure 🔥 Nice work!