From 027b6dc8cd179ea61024d551836f1a22c21966d1 Mon Sep 17 00:00:00 2001 From: vvveiii Date: Thu, 10 Jan 2019 15:25:41 +0800 Subject: [PATCH] add macOS support using static framework --- Color Extensions/UIColor+HTMLColors.h | 8 +- Color Extensions/UIColor+HTMLColors.m | 40 +- .../UIColor-HTMLColors-Prefix.pch | 26 + UIColor-HTMLColors.xcodeproj/project.pbxproj | 518 ++++++++++++++++++ .../UIColor-HTMLColors macOS.xcscheme | 80 +++ .../xcschemes/UIColor-HTMLColors.xcscheme | 99 ++++ 6 files changed, 768 insertions(+), 3 deletions(-) create mode 100644 Color Extensions/UIColor-HTMLColors-Prefix.pch create mode 100644 UIColor-HTMLColors.xcodeproj/project.pbxproj create mode 100644 UIColor-HTMLColors.xcodeproj/xcshareddata/xcschemes/UIColor-HTMLColors macOS.xcscheme create mode 100644 UIColor-HTMLColors.xcodeproj/xcshareddata/xcschemes/UIColor-HTMLColors.xcscheme diff --git a/Color Extensions/UIColor+HTMLColors.h b/Color Extensions/UIColor+HTMLColors.h index f8d6a9c..d4db5b2 100644 --- a/Color Extensions/UIColor+HTMLColors.h +++ b/Color Extensions/UIColor+HTMLColors.h @@ -5,7 +5,11 @@ // Copyright (c) 2012 James Lawton. All rights reserved. // -#import +#if !TARGET_OS_IPHONE && TARGET_OS_MAC + +#define UIColor NSColor + +#endif /** * Extensions to read and write colors in the formats supported by CSS. @@ -112,4 +116,4 @@ */ - (BOOL)scanW3CNamedColor:(UIColor **)color; -@end \ No newline at end of file +@end diff --git a/Color Extensions/UIColor+HTMLColors.m b/Color Extensions/UIColor+HTMLColors.m index 0319f61..6e9dc38 100644 --- a/Color Extensions/UIColor+HTMLColors.m +++ b/Color Extensions/UIColor+HTMLColors.m @@ -136,6 +136,7 @@ - (NSString *)hslStringValue // Fix up getting color components - (BOOL)cmr_getRed:(CGFloat *)red green:(CGFloat *)green blue:(CGFloat *)blue alpha:(CGFloat *)alpha { +#if TARGET_OS_IPHONE if ([self getRed:red green:green blue:blue alpha:alpha]) { return YES; } @@ -150,12 +151,31 @@ - (BOOL)cmr_getRed:(CGFloat *)red green:(CGFloat *)green blue:(CGFloat *)blue al *blue = white; return YES; } +#elif TARGET_OS_MAC + NSColorSpaceModel colorSpaceModel = self.colorSpace.colorSpaceModel; + if (colorSpaceModel == NSColorSpaceModelRGB) { + [self getRed:red green:green blue:blue alpha:alpha]; + return YES; + } else if (colorSpaceModel == NSColorSpaceModelGray) { + CGFloat white; + [self getWhite:&white alpha:alpha]; + if (red) + *red = white; + if (green) + *green = white; + if (blue) + *blue = white; + + return YES; + } +#endif return NO; } - (BOOL)cmr_getHue:(CGFloat *)hue saturation:(CGFloat *)saturation brightness:(CGFloat *)brightness alpha:(CGFloat *)alpha { +#if TARGET_OS_IPHONE if ([self getHue:hue saturation:saturation brightness:brightness alpha:alpha]) { return YES; } @@ -170,7 +190,25 @@ - (BOOL)cmr_getHue:(CGFloat *)hue saturation:(CGFloat *)saturation brightness:(C *brightness = white; return YES; } +#elif TARGET_OS_MAC + NSColorSpaceModel colorSpaceModel = self.colorSpace.colorSpaceModel; + if (colorSpaceModel == NSColorSpaceModelRGB) { + [self getHue:hue saturation:saturation brightness:brightness alpha:alpha]; + return YES; + } else if (colorSpaceModel == NSColorSpaceModelGray) { + CGFloat white; + [self getWhite:&white alpha:alpha]; + if (hue) + *hue = 0; + if (saturation) + *saturation = 0; + if (brightness) + *brightness = white; + + return YES; + } +#endif return NO; } @@ -224,7 +262,7 @@ - (BOOL)scanGrayColor:(UIColor **)color { return [self cmr_caseInsensitiveWithCleanup:^BOOL{ if ([self scanString:@"gray" intoString:NULL]) { - CGFloat grayValue; + CGFloat grayValue = 0; BOOL success = [self scanString:@"(" intoString:NULL] && [self cmr_scanNum:&grayValue scale:1.0/255.0]; diff --git a/Color Extensions/UIColor-HTMLColors-Prefix.pch b/Color Extensions/UIColor-HTMLColors-Prefix.pch new file mode 100644 index 0000000..b52e6d9 --- /dev/null +++ b/Color Extensions/UIColor-HTMLColors-Prefix.pch @@ -0,0 +1,26 @@ +// +// UIColor-HTMLColors-Prefix.pch +// UIColor-HTMLColors +// +// Created by LiaoWei@UNNOO.COM on 2019/1/10. +// Copyright © 2019 vvveiii. All rights reserved. +// + +#ifndef UIColor_HTMLColors_Prefix_pch +#define UIColor_HTMLColors_Prefix_pch + +#import +#import + +#if TARGET_OS_IPHONE + +#import + +#elif TARGET_OS_MAC + +#import +#define UIColor NSColor + +#endif + +#endif /* UIColor_HTMLColors_Prefix_pch */ diff --git a/UIColor-HTMLColors.xcodeproj/project.pbxproj b/UIColor-HTMLColors.xcodeproj/project.pbxproj new file mode 100644 index 0000000..7ff74d5 --- /dev/null +++ b/UIColor-HTMLColors.xcodeproj/project.pbxproj @@ -0,0 +1,518 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 50; + objects = { + +/* Begin PBXBuildFile section */ + 73B66D2721CF1B3200D8CD26 /* UIColor+HTMLColors.m in Sources */ = {isa = PBXBuildFile; fileRef = 73B66D2521CF1B3200D8CD26 /* UIColor+HTMLColors.m */; }; + 73B66D2821CF1B3200D8CD26 /* UIColor+HTMLColors.h in Headers */ = {isa = PBXBuildFile; fileRef = 73B66D2621CF1B3200D8CD26 /* UIColor+HTMLColors.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 73BD448E21E715A0008D5628 /* UIColor+HTMLColors.m in Sources */ = {isa = PBXBuildFile; fileRef = 73BD448C21E715A0008D5628 /* UIColor+HTMLColors.m */; }; + 73BD448F21E715A0008D5628 /* UIColor+HTMLColors.h in Headers */ = {isa = PBXBuildFile; fileRef = 73BD448D21E715A0008D5628 /* UIColor+HTMLColors.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 73BD449221E717C8008D5628 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 73BD449121E717C8008D5628 /* UIKit.framework */; }; + 73BD449421E717CE008D5628 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 73BD449321E717CE008D5628 /* Foundation.framework */; }; + 73BD449621E717D5008D5628 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 73BD449521E717D5008D5628 /* CoreGraphics.framework */; }; + 73BD449821E717DE008D5628 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 73BD449721E717DE008D5628 /* Foundation.framework */; }; + 73BD449A21E717E4008D5628 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 73BD449921E717E4008D5628 /* CoreGraphics.framework */; }; + 73BD449C21E717E9008D5628 /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 73BD449B21E717E9008D5628 /* AppKit.framework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 73B66D0A21CF1AE700D8CD26 /* UIColor_HTMLColors.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = UIColor_HTMLColors.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 73B66D2521CF1B3200D8CD26 /* UIColor+HTMLColors.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIColor+HTMLColors.m"; sourceTree = ""; }; + 73B66D2621CF1B3200D8CD26 /* UIColor+HTMLColors.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIColor+HTMLColors.h"; sourceTree = ""; }; + 73BD448321E7157F008D5628 /* UIColor-HTMLColors.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = "UIColor-HTMLColors.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; + 73BD448C21E715A0008D5628 /* UIColor+HTMLColors.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIColor+HTMLColors.m"; sourceTree = ""; }; + 73BD448D21E715A0008D5628 /* UIColor+HTMLColors.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIColor+HTMLColors.h"; sourceTree = ""; }; + 73BD449121E717C8008D5628 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; + 73BD449321E717CE008D5628 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; + 73BD449521E717D5008D5628 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; + 73BD449721E717DE008D5628 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; + 73BD449921E717E4008D5628 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework; sourceTree = DEVELOPER_DIR; }; + 73BD449B21E717E9008D5628 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/AppKit.framework; sourceTree = DEVELOPER_DIR; }; + 73BD449F21E71904008D5628 /* UIColor-HTMLColors-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "UIColor-HTMLColors-Prefix.pch"; sourceTree = ""; }; + 73BD44A021E7190E008D5628 /* UIColor-HTMLColors-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "UIColor-HTMLColors-Prefix.pch"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 73B66D0721CF1AE700D8CD26 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 73BD449621E717D5008D5628 /* CoreGraphics.framework in Frameworks */, + 73BD449421E717CE008D5628 /* Foundation.framework in Frameworks */, + 73BD449221E717C8008D5628 /* UIKit.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 73BD448021E7157F008D5628 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 73BD449C21E717E9008D5628 /* AppKit.framework in Frameworks */, + 73BD449A21E717E4008D5628 /* CoreGraphics.framework in Frameworks */, + 73BD449821E717DE008D5628 /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 73B66D0021CF1AE700D8CD26 = { + isa = PBXGroup; + children = ( + 73B66D2421CF1B3200D8CD26 /* Color Extensions */, + 73BD448421E7157F008D5628 /* UIColor-HTMLColors macOS */, + 73B66D0B21CF1AE700D8CD26 /* Products */, + 73BD449021E717C8008D5628 /* Frameworks */, + ); + sourceTree = ""; + }; + 73B66D0B21CF1AE700D8CD26 /* Products */ = { + isa = PBXGroup; + children = ( + 73B66D0A21CF1AE700D8CD26 /* UIColor_HTMLColors.framework */, + 73BD448321E7157F008D5628 /* UIColor-HTMLColors.framework */, + ); + name = Products; + sourceTree = ""; + }; + 73B66D2421CF1B3200D8CD26 /* Color Extensions */ = { + isa = PBXGroup; + children = ( + 73BD449F21E71904008D5628 /* UIColor-HTMLColors-Prefix.pch */, + 73B66D2621CF1B3200D8CD26 /* UIColor+HTMLColors.h */, + 73B66D2521CF1B3200D8CD26 /* UIColor+HTMLColors.m */, + ); + path = "Color Extensions"; + sourceTree = ""; + }; + 73BD448421E7157F008D5628 /* UIColor-HTMLColors macOS */ = { + isa = PBXGroup; + children = ( + 73BD448B21E715A0008D5628 /* Color Extensions */, + ); + path = "UIColor-HTMLColors macOS"; + sourceTree = ""; + }; + 73BD448B21E715A0008D5628 /* Color Extensions */ = { + isa = PBXGroup; + children = ( + 73BD44A021E7190E008D5628 /* UIColor-HTMLColors-Prefix.pch */, + 73BD448D21E715A0008D5628 /* UIColor+HTMLColors.h */, + 73BD448C21E715A0008D5628 /* UIColor+HTMLColors.m */, + ); + path = "Color Extensions"; + sourceTree = SOURCE_ROOT; + }; + 73BD449021E717C8008D5628 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 73BD449B21E717E9008D5628 /* AppKit.framework */, + 73BD449921E717E4008D5628 /* CoreGraphics.framework */, + 73BD449721E717DE008D5628 /* Foundation.framework */, + 73BD449521E717D5008D5628 /* CoreGraphics.framework */, + 73BD449321E717CE008D5628 /* Foundation.framework */, + 73BD449121E717C8008D5628 /* UIKit.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + 73B66D0521CF1AE700D8CD26 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 73B66D2821CF1B3200D8CD26 /* UIColor+HTMLColors.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 73BD447E21E7157F008D5628 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 73BD448F21E715A0008D5628 /* UIColor+HTMLColors.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + 73B66D0921CF1AE700D8CD26 /* UIColor-HTMLColors */ = { + isa = PBXNativeTarget; + buildConfigurationList = 73B66D1E21CF1AE700D8CD26 /* Build configuration list for PBXNativeTarget "UIColor-HTMLColors" */; + buildPhases = ( + 73B66D0521CF1AE700D8CD26 /* Headers */, + 73B66D0621CF1AE700D8CD26 /* Sources */, + 73B66D0721CF1AE700D8CD26 /* Frameworks */, + 73B66D0821CF1AE700D8CD26 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "UIColor-HTMLColors"; + productName = "UIColor-HTMLColors"; + productReference = 73B66D0A21CF1AE700D8CD26 /* UIColor_HTMLColors.framework */; + productType = "com.apple.product-type.framework"; + }; + 73BD448221E7157F008D5628 /* UIColor-HTMLColors macOS */ = { + isa = PBXNativeTarget; + buildConfigurationList = 73BD448821E7157F008D5628 /* Build configuration list for PBXNativeTarget "UIColor-HTMLColors macOS" */; + buildPhases = ( + 73BD447E21E7157F008D5628 /* Headers */, + 73BD447F21E7157F008D5628 /* Sources */, + 73BD448021E7157F008D5628 /* Frameworks */, + 73BD448121E7157F008D5628 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "UIColor-HTMLColors macOS"; + productName = "UIColor-HTMLColors macOS"; + productReference = 73BD448321E7157F008D5628 /* UIColor-HTMLColors.framework */; + productType = "com.apple.product-type.framework"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 73B66D0121CF1AE700D8CD26 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 1010; + ORGANIZATIONNAME = vvveiii; + TargetAttributes = { + 73B66D0921CF1AE700D8CD26 = { + CreatedOnToolsVersion = 10.1; + }; + 73BD448221E7157F008D5628 = { + CreatedOnToolsVersion = 10.1; + }; + }; + }; + buildConfigurationList = 73B66D0421CF1AE700D8CD26 /* Build configuration list for PBXProject "UIColor-HTMLColors" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = 73B66D0021CF1AE700D8CD26; + productRefGroup = 73B66D0B21CF1AE700D8CD26 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 73B66D0921CF1AE700D8CD26 /* UIColor-HTMLColors */, + 73BD448221E7157F008D5628 /* UIColor-HTMLColors macOS */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 73B66D0821CF1AE700D8CD26 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 73BD448121E7157F008D5628 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 73B66D0621CF1AE700D8CD26 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 73B66D2721CF1B3200D8CD26 /* UIColor+HTMLColors.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 73BD447F21E7157F008D5628 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 73BD448E21E715A0008D5628 /* UIColor+HTMLColors.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 73B66D1C21CF1AE700D8CD26 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + CURRENT_PROJECT_VERSION = 1; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + MACOSX_DEPLOYMENT_TARGET = 10.9; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + 73B66D1D21CF1AE700D8CD26 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + CURRENT_PROJECT_VERSION = 1; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + MACOSX_DEPLOYMENT_TARGET = 10.9; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + 73B66D1F21CF1AE700D8CD26 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + APPLICATION_EXTENSION_API_ONLY = YES; + CODE_SIGN_IDENTITY = ""; + CODE_SIGN_STYLE = Automatic; + COMPILER_INDEX_STORE_ENABLE = NO; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "Color Extensions/UIColor-HTMLColors-Prefix.pch"; + INFOPLIST_FILE = ""; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MACH_O_TYPE = staticlib; + PRODUCT_BUNDLE_IDENTIFIER = "com.vvveiii.UIColor-HTMLColors"; + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 73B66D2021CF1AE700D8CD26 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + APPLICATION_EXTENSION_API_ONLY = YES; + CODE_SIGN_IDENTITY = ""; + CODE_SIGN_STYLE = Automatic; + COMPILER_INDEX_STORE_ENABLE = NO; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "Color Extensions/UIColor-HTMLColors-Prefix.pch"; + INFOPLIST_FILE = ""; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MACH_O_TYPE = staticlib; + PRODUCT_BUNDLE_IDENTIFIER = "com.vvveiii.UIColor-HTMLColors"; + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; + 73BD448921E7157F008D5628 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + APPLICATION_EXTENSION_API_ONLY = YES; + CODE_SIGN_IDENTITY = "-"; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + FRAMEWORK_VERSION = A; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "Color Extensions/UIColor-HTMLColors-Prefix.pch"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + "@loader_path/Frameworks", + ); + MACH_O_TYPE = staticlib; + PRODUCT_BUNDLE_IDENTIFIER = "com.vvveiii.UIColor-HTMLColors-macOS"; + PRODUCT_NAME = "UIColor-HTMLColors"; + SDKROOT = macosx; + SKIP_INSTALL = YES; + }; + name = Debug; + }; + 73BD448A21E7157F008D5628 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + APPLICATION_EXTENSION_API_ONLY = YES; + CODE_SIGN_IDENTITY = "-"; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + FRAMEWORK_VERSION = A; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "Color Extensions/UIColor-HTMLColors-Prefix.pch"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + "@loader_path/Frameworks", + ); + MACH_O_TYPE = staticlib; + PRODUCT_BUNDLE_IDENTIFIER = "com.vvveiii.UIColor-HTMLColors-macOS"; + PRODUCT_NAME = "UIColor-HTMLColors"; + SDKROOT = macosx; + SKIP_INSTALL = YES; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 73B66D0421CF1AE700D8CD26 /* Build configuration list for PBXProject "UIColor-HTMLColors" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 73B66D1C21CF1AE700D8CD26 /* Debug */, + 73B66D1D21CF1AE700D8CD26 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 73B66D1E21CF1AE700D8CD26 /* Build configuration list for PBXNativeTarget "UIColor-HTMLColors" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 73B66D1F21CF1AE700D8CD26 /* Debug */, + 73B66D2021CF1AE700D8CD26 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 73BD448821E7157F008D5628 /* Build configuration list for PBXNativeTarget "UIColor-HTMLColors macOS" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 73BD448921E7157F008D5628 /* Debug */, + 73BD448A21E7157F008D5628 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 73B66D0121CF1AE700D8CD26 /* Project object */; +} diff --git a/UIColor-HTMLColors.xcodeproj/xcshareddata/xcschemes/UIColor-HTMLColors macOS.xcscheme b/UIColor-HTMLColors.xcodeproj/xcshareddata/xcschemes/UIColor-HTMLColors macOS.xcscheme new file mode 100644 index 0000000..a036f9c --- /dev/null +++ b/UIColor-HTMLColors.xcodeproj/xcshareddata/xcschemes/UIColor-HTMLColors macOS.xcscheme @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/UIColor-HTMLColors.xcodeproj/xcshareddata/xcschemes/UIColor-HTMLColors.xcscheme b/UIColor-HTMLColors.xcodeproj/xcshareddata/xcschemes/UIColor-HTMLColors.xcscheme new file mode 100644 index 0000000..cf9ad2c --- /dev/null +++ b/UIColor-HTMLColors.xcodeproj/xcshareddata/xcschemes/UIColor-HTMLColors.xcscheme @@ -0,0 +1,99 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +