Ticket #63810: patch-enable-build-on-high-sierra.diff

File patch-enable-build-on-high-sierra.diff, 14.7 KB (added by tomio-arisaka (Tomio Arisaka), 2 years ago)
  • HexFiend_2.xcodeproj/project.pbxproj

    :100755 100755 b35e59b effdb0d M	HexFiend_2.xcodeproj/project.pbxproj
    :100644 100644 ba8331c bacecc2 M	app/sources/DataInspectorScrollView.m
    :100644 100644 a24fffb 55ceffc M	app/sources/DiffTextViewContainer.m
    :100644 100644 520d976 9307117 M	app/sources/HFClickableTextField.m
    :100644 100644 cd2b968 a2b3783 M	app/sources/TextDividerRepresenter.m
    :100644 100644 a7d44cf a327692 M	framework/sources/HFColumnView.m
    :100644 100644 7f2322b d3f6129 M	framework/sources/HFFunctions.m
    :100644 100644 81e66b0 1acd966 M	framework/sources/HFLineCountingView.m
    :100644 100644 8f0cbc1 4b99a81 M	framework/sources/HFRepresenterTextView.m
    :100644 100644 cf917c6 55e4d9a M	framework/sources/HFTextRepresenter.m
    
    diff --git a/HexFiend_2.xcodeproj/project.pbxproj b/HexFiend_2.xcodeproj/project.pbxproj
    index b35e59b..effdb0d 100755
    a b  
    33        archiveVersion = 1;
    44        classes = {
    55        };
    6         objectVersion = 53;
     6        objectVersion = 50;
    77        objects = {
    88
    99/* Begin PBXAggregateTarget section */
     
    112112                A59BC59C2002113F0066860F /* HFTemplateNode.m in Sources */ = {isa = PBXBuildFile; fileRef = A59BC59B2002113F0066860F /* HFTemplateNode.m */; };
    113113                A59BC59F2002E63C0066860F /* HFTemplateController.m in Sources */ = {isa = PBXBuildFile; fileRef = A59BC59E2002E63C0066860F /* HFTemplateController.m */; };
    114114                A59DFE67200BE7A800FEA540 /* BinaryTemplateController.xib in Resources */ = {isa = PBXBuildFile; fileRef = A59DFE65200BE7A800FEA540 /* BinaryTemplateController.xib */; };
    115                 A5A34C1B26AD271900506AE7 /* Sparkle in Frameworks */ = {isa = PBXBuildFile; productRef = A5A34C1A26AD271900506AE7 /* Sparkle */; };
     115                A5A34C1B26AD271900506AE7 /* (null) in Frameworks */ = {isa = PBXBuildFile; };
    116116                A5AE0C1D21E1D7570044014E /* HFColumnView.h in Headers */ = {isa = PBXBuildFile; fileRef = A5AE0C1B21E1D7570044014E /* HFColumnView.h */; settings = {ATTRIBUTES = (Public, ); }; };
    117117                A5AE0C1E21E1D7570044014E /* HFColumnView.m in Sources */ = {isa = PBXBuildFile; fileRef = A5AE0C1C21E1D7570044014E /* HFColumnView.m */; };
    118118                A5CEA41C20D5DF4400BCA488 /* HFStringEncoding.h in Headers */ = {isa = PBXBuildFile; fileRef = A5CEA41A20D5DF4400BCA488 /* HFStringEncoding.h */; settings = {ATTRIBUTES = (Public, ); }; };
     
    698698                                A5D8C8F220E9E58000103D60 /* libz.1.tbd in Frameworks */,
    699699                                A59BC5942001FD0F0066860F /* Tcl.framework in Frameworks */,
    700700                                795F46C314BAADB600EB2F7D /* DiskArbitration.framework in Frameworks */,
    701                                 A5A34C1B26AD271900506AE7 /* Sparkle in Frameworks */,
     701                                A5A34C1B26AD271900506AE7 /* (null) in Frameworks */,
    702702                                8D11072F0486CEB800E47090 /* Cocoa.framework in Frameworks */,
    703703                                94ECCBC01BDF7DD2007FF44E /* HexFiend.framework in Frameworks */,
    704704                        );
     
    14941494                                D039DC001481C17C00364FA6 /* PBXTargetDependency */,
    14951495                        );
    14961496                        name = HexFiend_2;
    1497                         packageProductDependencies = (
    1498                                 A5A34C1A26AD271900506AE7 /* Sparkle */,
    1499                         );
    15001497                        productInstallPath = "$(HOME)/Applications";
    15011498                        productName = HexFiend_2;
    15021499                        productReference = 8D1107320486CEB800E47090 /* Hex Fiend.app */;
     
    16261623                                };
    16271624                        };
    16281625                        buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "HexFiend_2" */;
    1629                         compatibilityVersion = "Xcode 11.4";
     1626                        compatibilityVersion = "Xcode 9.3";
    16301627                        developmentRegion = en;
    16311628                        hasScannedForEncodings = 1;
    16321629                        knownRegions = (
     
    16341631                                Base,
    16351632                        );
    16361633                        mainGroup = 29B97314FDCFA39411CA2CEA /* HexFiend_2 */;
    1637                         packageReferences = (
    1638                                 A5A34C1926AD271900506AE7 /* XCRemoteSwiftPackageReference "Sparkle" */,
    1639                         );
    16401634                        projectDirPath = "";
    16411635                        projectRoot = ../..;
    16421636                        targets = (
     
    24882482                                INFOPLIST_PREFIX_HEADER = version.h;
    24892483                                INFOPLIST_PREPROCESS = YES;
    24902484                                INSTALL_PATH = "@loader_path/../Frameworks";
     2485                                IPHONEOS_DEPLOYMENT_TARGET = 11.4;
    24912486                                LD_DYLIB_INSTALL_NAME = "@loader_path/../Frameworks/HexFiend.framework/Versions/A/HexFiend";
    24922487                                OTHER_CFLAGS = (
    24932488                                        "-fblocks",
     
    25132508                                INFOPLIST_PREFIX_HEADER = version.h;
    25142509                                INFOPLIST_PREPROCESS = YES;
    25152510                                INSTALL_PATH = "@loader_path/../Frameworks";
     2511                                IPHONEOS_DEPLOYMENT_TARGET = 11.4;
    25162512                                LD_DYLIB_INSTALL_NAME = "@loader_path/../Frameworks/HexFiend.framework/Versions/A/HexFiend";
    25172513                                OTHER_CFLAGS = (
    25182514                                        "-fblocks",
     
    25382534                                INFOPLIST_PREFIX_HEADER = version.h;
    25392535                                INFOPLIST_PREPROCESS = YES;
    25402536                                INSTALL_PATH = "@loader_path/../Frameworks";
     2537                                IPHONEOS_DEPLOYMENT_TARGET = 11.4;
    25412538                                LD_DYLIB_INSTALL_NAME = "@loader_path/../Frameworks/HexFiend.framework/Versions/A/HexFiend";
    25422539                                OTHER_CFLAGS = (
    25432540                                        "-fblocks",
     
    25622559                                INFOPLIST_PREFIX_HEADER = version.h;
    25632560                                INFOPLIST_PREPROCESS = YES;
    25642561                                INSTALL_PATH = "@loader_path/../Frameworks";
     2562                                IPHONEOS_DEPLOYMENT_TARGET = 11.4;
    25652563                                LD_DYLIB_INSTALL_NAME = "@loader_path/../Frameworks/HexFiend.framework/Versions/A/HexFiend";
    25662564                                OTHER_CFLAGS = (
    25672565                                        "-fblocks",
     
    25872585                                INFOPLIST_PREFIX_HEADER = version.h;
    25882586                                INFOPLIST_PREPROCESS = YES;
    25892587                                INSTALL_PATH = "@loader_path/../Frameworks";
     2588                                IPHONEOS_DEPLOYMENT_TARGET = 11.4;
    25902589                                LD_DYLIB_INSTALL_NAME = "@loader_path/../Frameworks/HexFiend.framework/Versions/A/HexFiend";
    25912590                                OTHER_CFLAGS = (
    25922591                                        "-fblocks",
     
    26122611                                INFOPLIST_PREFIX_HEADER = version.h;
    26132612                                INFOPLIST_PREPROCESS = YES;
    26142613                                INSTALL_PATH = "@loader_path/../Frameworks";
     2614                                IPHONEOS_DEPLOYMENT_TARGET = 11.4;
    26152615                                LD_DYLIB_INSTALL_NAME = "@loader_path/../Frameworks/HexFiend.framework/Versions/A/HexFiend";
    26162616                                OTHER_CFLAGS = (
    26172617                                        "-fblocks",
     
    26372637                                INFOPLIST_PREFIX_HEADER = version.h;
    26382638                                INFOPLIST_PREPROCESS = YES;
    26392639                                INSTALL_PATH = "@loader_path/../Frameworks";
     2640                                IPHONEOS_DEPLOYMENT_TARGET = 11.4;
    26402641                                LD_DYLIB_INSTALL_NAME = "@loader_path/../Frameworks/HexFiend.framework/Versions/A/HexFiend";
    26412642                                OTHER_CFLAGS = (
    26422643                                        "-fblocks",
     
    27392740                                INFOPLIST_OTHER_PREPROCESSOR_FLAGS = "-traditional";
    27402741                                INFOPLIST_PREFIX_HEADER = version.h;
    27412742                                INFOPLIST_PREPROCESS = YES;
     2743                                IPHONEOS_DEPLOYMENT_TARGET = 11.4;
    27422744                                LD_RUNPATH_SEARCH_PATHS = (
    27432745                                        "$(inherited)",
    27442746                                        "@executable_path/../Frameworks",
     
    27472749                                        "-fblocks",
    27482750                                        "$(inherited)",
    27492751                                );
    2750                                 OTHER_LDFLAGS = (
    2751                                         "$(inherited)",
    2752                                         "-framework",
    2753                                         Sparkle,
    2754                                 );
     2752                                OTHER_LDFLAGS = "$(inherited)";
    27552753                                PRODUCT_BUNDLE_IDENTIFIER = com.ridiculousfish.HexFiend;
    27562754                                PRODUCT_NAME = "Hex Fiend";
    27572755                                WRAPPER_EXTENSION = app;
     
    29012899                                INFOPLIST_OTHER_PREPROCESSOR_FLAGS = "-traditional";
    29022900                                INFOPLIST_PREFIX_HEADER = version.h;
    29032901                                INFOPLIST_PREPROCESS = YES;
     2902                                IPHONEOS_DEPLOYMENT_TARGET = 11.4;
    29042903                                LD_RUNPATH_SEARCH_PATHS = (
    29052904                                        "$(inherited)",
    29062905                                        "@executable_path/../Frameworks",
     
    29092908                                        "-fblocks",
    29102909                                        "$(inherited)",
    29112910                                );
    2912                                 OTHER_LDFLAGS = (
    2913                                         "$(inherited)",
    2914                                         "-framework",
    2915                                         Sparkle,
    2916                                 );
     2911                                OTHER_LDFLAGS = "$(inherited)";
    29172912                                PRODUCT_BUNDLE_IDENTIFIER = com.ridiculousfish.HexFiend;
    29182913                                PRODUCT_NAME = "Hex Fiend";
    29192914                                WRAPPER_EXTENSION = app;
     
    30603055                                INFOPLIST_OTHER_PREPROCESSOR_FLAGS = "-traditional";
    30613056                                INFOPLIST_PREFIX_HEADER = version.h;
    30623057                                INFOPLIST_PREPROCESS = YES;
     3058                                IPHONEOS_DEPLOYMENT_TARGET = 11.4;
    30633059                                LD_RUNPATH_SEARCH_PATHS = (
    30643060                                        "$(inherited)",
    30653061                                        "@executable_path/../Frameworks",
     
    30683064                                        "-fblocks",
    30693065                                        "$(inherited)",
    30703066                                );
    3071                                 OTHER_LDFLAGS = (
    3072                                         "$(inherited)",
    3073                                         "-framework",
    3074                                         Sparkle,
    3075                                 );
     3067                                OTHER_LDFLAGS = "$(inherited)";
    30763068                                PRODUCT_BUNDLE_IDENTIFIER = com.ridiculousfish.HexFiend;
    30773069                                PRODUCT_NAME = "Hex Fiend";
    30783070                                WRAPPER_EXTENSION = app;
     
    32393231                                INFOPLIST_OTHER_PREPROCESSOR_FLAGS = "-traditional";
    32403232                                INFOPLIST_PREFIX_HEADER = version.h;
    32413233                                INFOPLIST_PREPROCESS = YES;
     3234                                IPHONEOS_DEPLOYMENT_TARGET = 11.4;
    32423235                                LD_RUNPATH_SEARCH_PATHS = (
    32433236                                        "$(inherited)",
    32443237                                        "@executable_path/../Frameworks",
     
    34293422                                INFOPLIST_OTHER_PREPROCESSOR_FLAGS = "-traditional";
    34303423                                INFOPLIST_PREFIX_HEADER = version.h;
    34313424                                INFOPLIST_PREPROCESS = YES;
     3425                                IPHONEOS_DEPLOYMENT_TARGET = 11.4;
    34323426                                LD_RUNPATH_SEARCH_PATHS = (
    34333427                                        "$(inherited)",
    34343428                                        "@executable_path/../Frameworks",
     
    36243618                                INFOPLIST_OTHER_PREPROCESSOR_FLAGS = "-traditional";
    36253619                                INFOPLIST_PREFIX_HEADER = version.h;
    36263620                                INFOPLIST_PREPROCESS = YES;
     3621                                IPHONEOS_DEPLOYMENT_TARGET = 11.4;
    36273622                                LD_RUNPATH_SEARCH_PATHS = (
    36283623                                        "$(inherited)",
    36293624                                        "@executable_path/../Frameworks",
     
    36323627                                        "-fblocks",
    36333628                                        "$(inherited)",
    36343629                                );
    3635                                 OTHER_LDFLAGS = (
    3636                                         "$(inherited)",
    3637                                         "-framework",
    3638                                         Sparkle,
    3639                                 );
     3630                                OTHER_LDFLAGS = "$(inherited)";
    36403631                                PRODUCT_BUNDLE_IDENTIFIER = com.ridiculousfish.HexFiend;
    36413632                                PRODUCT_NAME = "Hex Fiend";
    36423633                                WRAPPER_EXTENSION = app;
     
    38073798                                INFOPLIST_OTHER_PREPROCESSOR_FLAGS = "-traditional";
    38083799                                INFOPLIST_PREFIX_HEADER = version.h;
    38093800                                INFOPLIST_PREPROCESS = YES;
     3801                                IPHONEOS_DEPLOYMENT_TARGET = 11.4;
    38103802                                LD_RUNPATH_SEARCH_PATHS = (
    38113803                                        "$(inherited)",
    38123804                                        "@executable_path/../Frameworks",
     
    38153807                                        "-fblocks",
    38163808                                        "$(inherited)",
    38173809                                );
    3818                                 OTHER_LDFLAGS = (
    3819                                         "$(inherited)",
    3820                                         "-framework",
    3821                                         Sparkle,
    3822                                 );
     3810                                OTHER_LDFLAGS = "$(inherited)";
    38233811                                PRODUCT_BUNDLE_IDENTIFIER = com.ridiculousfish.HexFiend;
    38243812                                PRODUCT_NAME = "Hex Fiend";
    38253813                                WRAPPER_EXTENSION = app;
     
    39843972                        defaultConfigurationName = Release;
    39853973                };
    39863974/* End XCConfigurationList section */
    3987 
    3988 /* Begin XCRemoteSwiftPackageReference section */
    3989                 A5A34C1926AD271900506AE7 /* XCRemoteSwiftPackageReference "Sparkle" */ = {
    3990                         isa = XCRemoteSwiftPackageReference;
    3991                         repositoryURL = "https://github.com/sparkle-project/Sparkle";
    3992                         requirement = {
    3993                                 kind = exactVersion;
    3994                                 version = 1.26.0;
    3995                         };
    3996                 };
    3997 /* End XCRemoteSwiftPackageReference section */
    3998 
    3999 /* Begin XCSwiftPackageProductDependency section */
    4000                 A5A34C1A26AD271900506AE7 /* Sparkle */ = {
    4001                         isa = XCSwiftPackageProductDependency;
    4002                         package = A5A34C1926AD271900506AE7 /* XCRemoteSwiftPackageReference "Sparkle" */;
    4003                         productName = Sparkle;
    4004                 };
    4005 /* End XCSwiftPackageProductDependency section */
    40063975        };
    40073976        rootObject = 29B97313FDCFA39411CA2CEA /* Project object */;
    40083977}
  • app/sources/DataInspectorScrollView.m

    diff --git a/app/sources/DataInspectorScrollView.m b/app/sources/DataInspectorScrollView.m
    index ba8331c..bacecc2 100644
    a b  
    1414    NSColor *separatorColor = [NSColor lightGrayColor];
    1515    if (HFDarkModeEnabled()) {
    1616        if (@available(macOS 10.14, *)) {
    17             separatorColor = [NSColor separatorColor];
     17//            separatorColor = [NSColor separatorColor];
    1818        }
    1919    }
    2020    [separatorColor set];
  • app/sources/DiffTextViewContainer.m

    diff --git a/app/sources/DiffTextViewContainer.m b/app/sources/DiffTextViewContainer.m
    index a24fffb..55ceffc 100644
    a b  
    173173    NSColor *dividerColor = [NSColor darkGrayColor];
    174174    if (darkMode) {
    175175        if (@available(macOS 10.14, *)) {
    176             dividerColor = [NSColor separatorColor];
     176//            dividerColor = [NSColor separatorColor];
    177177        }
    178178    }
    179179    [dividerColor set];
  • app/sources/HFClickableTextField.m

    diff --git a/app/sources/HFClickableTextField.m b/app/sources/HFClickableTextField.m
    index 520d976..9307117 100644
    a b  
    1111@implementation HFClickableTextField
    1212
    1313- (void)awakeFromNib {
    14     self.textColor = NSColor.linkColor;
     14//    self.textColor = NSColor.linkColor;
    1515}
    1616
    1717- (void)viewDidMoveToWindow {
  • app/sources/TextDividerRepresenter.m

    diff --git a/app/sources/TextDividerRepresenter.m b/app/sources/TextDividerRepresenter.m
    index cd2b968..a2b3783 100644
    a b  
    4545    NSColor *dividerColor = [NSColor darkGrayColor];
    4646    if (darkMode) {
    4747        if (@available(macOS 10.14, *)) {
    48             dividerColor = [NSColor separatorColor];
     48//            dividerColor = [NSColor separatorColor];
    4949        }
    5050    }
    5151    [dividerColor set];
  • framework/sources/HFColumnView.m

    diff --git a/framework/sources/HFColumnView.m b/framework/sources/HFColumnView.m
    index a7d44cf..a327692 100644
    a b  
    1212
    1313- (NSColor *)borderColor {
    1414    if (@available(macOS 10.14, *)) {
    15         return [NSColor separatorColor];
     15//        return [NSColor separatorColor];
    1616    }
    1717    return [NSColor darkGrayColor];
    1818}
  • framework/sources/HFFunctions.m

    diff --git a/framework/sources/HFFunctions.m b/framework/sources/HFFunctions.m
    index 7f2322b..d3f6129 100644
    a b BOOL HFDarkModeEnabled(void) { 
    943943    return NO;
    944944#else
    945945    if (@available(macOS 10.14, *)) {
    946         if ([NSAppearance.currentAppearance.name isEqualToString:NSAppearanceNameDarkAqua]) {
     946/*        if ([NSAppearance.currentAppearance.name isEqualToString:NSAppearanceNameDarkAqua]) {
    947947            return YES;
    948948        }
     949*/
    949950    }
    950951    return NO;
    951952#endif
  • framework/sources/HFLineCountingView.m

    diff --git a/framework/sources/HFLineCountingView.m b/framework/sources/HFLineCountingView.m
    index 81e66b0..1acd966 100644
    a b static const CGFloat kShadowWidth = 6; 
    5656
    5757- (NSColor *)borderColor {
    5858    if (@available(macOS 10.14, *)) {
    59         return [NSColor separatorColor];
     59//        return [NSColor separatorColor];
    6060    }
    6161    return [NSColor darkGrayColor];
    6262}
  • framework/sources/HFRepresenterTextView.m

    diff --git a/framework/sources/HFRepresenterTextView.m b/framework/sources/HFRepresenterTextView.m
    index 8f0cbc1..4b99a81 100644
    a b enum LineCoverage_t { 
    541541- (NSColor *)inactiveTextSelectionColor {
    542542    if (HFDarkModeEnabled()) {
    543543        if (@available(macOS 10.14, *)) {
    544             return [NSColor unemphasizedSelectedTextBackgroundColor];
     544//            return [NSColor unemphasizedSelectedTextBackgroundColor];
    545545        }
    546546    }
    547547    return [NSColor colorWithCalibratedWhite: (CGFloat)(212./255.) alpha:1];
  • framework/sources/HFTextRepresenter.m

    diff --git a/framework/sources/HFTextRepresenter.m b/framework/sources/HFTextRepresenter.m
    index cf917c6..55e4d9a 100644
    a b  
    3434    const BOOL useHFBlue = [NSUserDefaults.standardUserDefaults boolForKey:@"UseBlueAlternatingColor"];
    3535    if (@available(macOS 10.14, *)) {
    3636        if (HFDarkModeEnabled() || !useHFBlue) {
    37             return [NSColor alternatingContentBackgroundColors];
     37//            return [NSColor alternatingContentBackgroundColors];
    3838        }
    3939    }
    4040    NSColor *color1 = [NSColor colorWithCalibratedWhite:1.0 alpha:1.0];