Browse Source

Merge branch 'master' into fix/code-cleanup

Nicholas Maccharoli 5 years ago
parent
commit
69ea8596df

+ 5 - 36
CryptoSwift.xcodeproj/project.pbxproj

@@ -3,7 +3,7 @@
 	archiveVersion = 1;
 	classes = {
 	};
-	objectVersion = 48;
+	objectVersion = 52;
 	objects = {
 
 /* Begin PBXBuildFile section */
@@ -207,20 +207,15 @@
 		75211F94207249D8004E41F8 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
 		75211FA0207249D8004E41F8 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
 		75211FA520724A0F004E41F8 /* CryptoSwift-TestHostApp-Test.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = "CryptoSwift-TestHostApp-Test.xcconfig"; sourceTree = "<group>"; };
-		75211FA620724A0F004E41F8 /* Project-Test.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = "Project-Test.xcconfig"; sourceTree = "<group>"; };
-		75211FA720724A0F004E41F8 /* Tests-Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = "Tests-Debug.xcconfig"; sourceTree = "<group>"; };
 		75211FA820724A0F004E41F8 /* CryptoSwift-Shared.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = "CryptoSwift-Shared.xcconfig"; sourceTree = "<group>"; };
 		75211FA920724A0F004E41F8 /* CryptoSwift-TestHostApp-Shared.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = "CryptoSwift-TestHostApp-Shared.xcconfig"; sourceTree = "<group>"; };
 		75211FAA20724A0F004E41F8 /* Project-Release.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = "Project-Release.xcconfig"; sourceTree = "<group>"; };
-		75211FAB20724A0F004E41F8 /* CryptoSwift-TestHostApp-Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = "CryptoSwift-TestHostApp-Debug.xcconfig"; sourceTree = "<group>"; };
 		75211FAC20724A0F004E41F8 /* CryptoSwift-Release.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = "CryptoSwift-Release.xcconfig"; sourceTree = "<group>"; };
-		75211FAD20724A0F004E41F8 /* Tests-Release.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = "Tests-Release.xcconfig"; sourceTree = "<group>"; };
 		75211FAE20724A10004E41F8 /* Tests-Shared.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = "Tests-Shared.xcconfig"; sourceTree = "<group>"; };
 		75211FAF20724A10004E41F8 /* CryptoSwift-Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = "CryptoSwift-Debug.xcconfig"; sourceTree = "<group>"; };
 		75211FB020724A10004E41F8 /* Project-Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = "Project-Debug.xcconfig"; sourceTree = "<group>"; };
 		75211FB120724A10004E41F8 /* Tests-Test.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = "Tests-Test.xcconfig"; sourceTree = "<group>"; };
 		75211FB220724A10004E41F8 /* Project-Shared.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = "Project-Shared.xcconfig"; sourceTree = "<group>"; };
-		75211FB320724A10004E41F8 /* CryptoSwift-TestHostApp-Release.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = "CryptoSwift-TestHostApp-Release.xcconfig"; sourceTree = "<group>"; };
 		75211FB420724A10004E41F8 /* CryptoSwift-Test.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = "CryptoSwift-Test.xcconfig"; sourceTree = "<group>"; };
 		7523742C2083C61C0016D662 /* GCM.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GCM.swift; sourceTree = "<group>"; };
 		7529366920683DFC00195874 /* AEADChaCha20Poly1305.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AEADChaCha20Poly1305.swift; sourceTree = "<group>"; };
@@ -477,16 +472,11 @@
 				75211FAC20724A0F004E41F8 /* CryptoSwift-Release.xcconfig */,
 				75211FA820724A0F004E41F8 /* CryptoSwift-Shared.xcconfig */,
 				75211FB420724A10004E41F8 /* CryptoSwift-Test.xcconfig */,
-				75211FAB20724A0F004E41F8 /* CryptoSwift-TestHostApp-Debug.xcconfig */,
-				75211FB320724A10004E41F8 /* CryptoSwift-TestHostApp-Release.xcconfig */,
 				75211FA520724A0F004E41F8 /* CryptoSwift-TestHostApp-Test.xcconfig */,
 				75211FA920724A0F004E41F8 /* CryptoSwift-TestHostApp-Shared.xcconfig */,
 				75211FB020724A10004E41F8 /* Project-Debug.xcconfig */,
 				75211FAA20724A0F004E41F8 /* Project-Release.xcconfig */,
 				75211FB220724A10004E41F8 /* Project-Shared.xcconfig */,
-				75211FA620724A0F004E41F8 /* Project-Test.xcconfig */,
-				75211FA720724A0F004E41F8 /* Tests-Debug.xcconfig */,
-				75211FAD20724A0F004E41F8 /* Tests-Release.xcconfig */,
 				75211FAE20724A10004E41F8 /* Tests-Shared.xcconfig */,
 				75211FB120724A10004E41F8 /* Tests-Test.xcconfig */,
 			);
@@ -739,7 +729,7 @@
 					75211F91207249D8004E41F8 = {
 						CreatedOnToolsVersion = 9.3;
 						LastSwiftMigration = 1020;
-						ProvisioningStyle = Automatic;
+						ProvisioningStyle = Manual;
 					};
 					754BE45419693E190098E6F3 = {
 						CreatedOnToolsVersion = 6.0;
@@ -978,6 +968,7 @@
 		};
 		7564F0622072EB5D00CA5A96 /* PBXTargetDependency */ = {
 			isa = PBXTargetDependency;
+			platformFilter = ios;
 			target = 75211F91207249D8004E41F8 /* CryptoSwift-TestHostApp */;
 			targetProxy = 7564F0612072EB5D00CA5A96 /* PBXContainerItemProxy */;
 		};
@@ -998,6 +989,7 @@
 		};
 		75F9482220BDDF9900956311 /* PBXTargetDependency */ = {
 			isa = PBXTargetDependency;
+			platformFilter = ios;
 			target = 75211F91207249D8004E41F8 /* CryptoSwift-TestHostApp */;
 			targetProxy = 75F9482120BDDF9900956311 /* PBXContainerItemProxy */;
 		};
@@ -1006,17 +998,13 @@
 /* Begin XCBuildConfiguration section */
 		75211FA1207249D8004E41F8 /* Debug */ = {
 			isa = XCBuildConfiguration;
-			baseConfigurationReference = 75211FAB20724A0F004E41F8 /* CryptoSwift-TestHostApp-Debug.xcconfig */;
 			buildSettings = {
-				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
 			};
 			name = Debug;
 		};
 		75211FA2207249D8004E41F8 /* Release */ = {
 			isa = XCBuildConfiguration;
-			baseConfigurationReference = 75211FB320724A10004E41F8 /* CryptoSwift-TestHostApp-Release.xcconfig */;
 			buildSettings = {
-				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
 			};
 			name = Release;
 		};
@@ -1024,7 +1012,6 @@
 			isa = XCBuildConfiguration;
 			baseConfigurationReference = 75211FA520724A0F004E41F8 /* CryptoSwift-TestHostApp-Test.xcconfig */;
 			buildSettings = {
-				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
 			};
 			name = Test;
 		};
@@ -1058,37 +1045,29 @@
 		};
 		754BE46F19693E190098E6F3 /* Debug */ = {
 			isa = XCBuildConfiguration;
-			baseConfigurationReference = 75211FA720724A0F004E41F8 /* Tests-Debug.xcconfig */;
 			buildSettings = {
 			};
 			name = Debug;
 		};
 		754BE47019693E190098E6F3 /* Release */ = {
 			isa = XCBuildConfiguration;
-			baseConfigurationReference = 75211FAD20724A0F004E41F8 /* Tests-Release.xcconfig */;
 			buildSettings = {
 			};
 			name = Release;
 		};
 		7564F05D2072EAEB00CA5A96 /* Debug */ = {
 			isa = XCBuildConfiguration;
-			baseConfigurationReference = 75211FA720724A0F004E41F8 /* Tests-Debug.xcconfig */;
 			buildSettings = {
 				INFOPLIST_FILE = Tests/TestsPerformance/Info.plist;
 				SDKROOT = iphoneos;
-				SWIFT_OBJC_BRIDGING_HEADER = Tests/TestsPerformance/Bridging.h;
-				TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CryptoSwift-TestHostApp.app/CryptoSwift-TestHostApp";
 			};
 			name = Debug;
 		};
 		7564F05E2072EAEB00CA5A96 /* Release */ = {
 			isa = XCBuildConfiguration;
-			baseConfigurationReference = 75211FAD20724A0F004E41F8 /* Tests-Release.xcconfig */;
 			buildSettings = {
 				INFOPLIST_FILE = Tests/TestsPerformance/Info.plist;
 				SDKROOT = iphoneos;
-				SWIFT_OBJC_BRIDGING_HEADER = Tests/TestsPerformance/Bridging.h;
-				TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CryptoSwift-TestHostApp.app/CryptoSwift-TestHostApp";
 			};
 			name = Release;
 		};
@@ -1098,14 +1077,12 @@
 			buildSettings = {
 				INFOPLIST_FILE = Tests/TestsPerformance/Info.plist;
 				SDKROOT = iphoneos;
-				SWIFT_OBJC_BRIDGING_HEADER = Tests/TestsPerformance/Bridging.h;
-				TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CryptoSwift-TestHostApp.app/CryptoSwift-TestHostApp";
 			};
 			name = Test;
 		};
 		756B66AA1F6AAFDB00DEC41C /* Test */ = {
 			isa = XCBuildConfiguration;
-			baseConfigurationReference = 75211FA620724A0F004E41F8 /* Project-Test.xcconfig */;
+			baseConfigurationReference = 75211FB220724A10004E41F8 /* Project-Shared.xcconfig */;
 			buildSettings = {
 			};
 			name = Test;
@@ -1126,21 +1103,15 @@
 		};
 		7595C14F2072E48C00EA1A5F /* Debug */ = {
 			isa = XCBuildConfiguration;
-			baseConfigurationReference = 75211FA720724A0F004E41F8 /* Tests-Debug.xcconfig */;
 			buildSettings = {
-				DEVELOPMENT_TEAM = "";
 				INFOPLIST_FILE = Tests/TestsPerformance/Info.plist;
-				SWIFT_OBJC_BRIDGING_HEADER = Tests/TestsPerformance/Bridging.h;
 			};
 			name = Debug;
 		};
 		7595C1502072E48C00EA1A5F /* Release */ = {
 			isa = XCBuildConfiguration;
-			baseConfigurationReference = 75211FAD20724A0F004E41F8 /* Tests-Release.xcconfig */;
 			buildSettings = {
-				DEVELOPMENT_TEAM = "";
 				INFOPLIST_FILE = Tests/TestsPerformance/Info.plist;
-				SWIFT_OBJC_BRIDGING_HEADER = Tests/TestsPerformance/Bridging.h;
 			};
 			name = Release;
 		};
@@ -1148,9 +1119,7 @@
 			isa = XCBuildConfiguration;
 			baseConfigurationReference = 75211FB120724A10004E41F8 /* Tests-Test.xcconfig */;
 			buildSettings = {
-				DEVELOPMENT_TEAM = "";
 				INFOPLIST_FILE = Tests/TestsPerformance/Info.plist;
-				SWIFT_OBJC_BRIDGING_HEADER = Tests/TestsPerformance/Bridging.h;
 			};
 			name = Test;
 		};

+ 2 - 6
CryptoSwift.xcodeproj/xcshareddata/xcschemes/CryptoSwift-TestHostApp.xcscheme

@@ -27,8 +27,6 @@
       selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
       selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       shouldUseLaunchSchemeArgsEnv = "YES">
-      <Testables>
-      </Testables>
       <MacroExpansion>
          <BuildableReference
             BuildableIdentifier = "primary"
@@ -38,8 +36,8 @@
             ReferencedContainer = "container:CryptoSwift.xcodeproj">
          </BuildableReference>
       </MacroExpansion>
-      <AdditionalOptions>
-      </AdditionalOptions>
+      <Testables>
+      </Testables>
    </TestAction>
    <LaunchAction
       buildConfiguration = "Test"
@@ -61,8 +59,6 @@
             ReferencedContainer = "container:CryptoSwift.xcodeproj">
          </BuildableReference>
       </BuildableProductRunnable>
-      <AdditionalOptions>
-      </AdditionalOptions>
    </LaunchAction>
    <ProfileAction
       buildConfiguration = "Release"

+ 28 - 20
CryptoSwift.xcodeproj/xcshareddata/xcschemes/CryptoSwift.xcscheme

@@ -34,6 +34,34 @@
                ReferencedContainer = "container:CryptoSwift.xcodeproj">
             </BuildableReference>
          </BuildActionEntry>
+         <BuildActionEntry
+            buildForTesting = "YES"
+            buildForRunning = "NO"
+            buildForProfiling = "NO"
+            buildForArchiving = "NO"
+            buildForAnalyzing = "NO">
+            <BuildableReference
+               BuildableIdentifier = "primary"
+               BlueprintIdentifier = "7595C1492072E48C00EA1A5F"
+               BuildableName = "TestsPerformance-Mac.xctest"
+               BlueprintName = "TestsPerformance-Mac"
+               ReferencedContainer = "container:CryptoSwift.xcodeproj">
+            </BuildableReference>
+         </BuildActionEntry>
+         <BuildActionEntry
+            buildForTesting = "YES"
+            buildForRunning = "NO"
+            buildForProfiling = "NO"
+            buildForArchiving = "NO"
+            buildForAnalyzing = "NO">
+            <BuildableReference
+               BuildableIdentifier = "primary"
+               BlueprintIdentifier = "7564F04E2072EAEB00CA5A96"
+               BuildableName = "TestsPerformance-iOS.xctest"
+               BlueprintName = "TestsPerformance-iOS"
+               ReferencedContainer = "container:CryptoSwift.xcodeproj">
+            </BuildableReference>
+         </BuildActionEntry>
       </BuildActionEntries>
    </BuildAction>
    <TestAction
@@ -64,26 +92,6 @@
                ReferencedContainer = "container:CryptoSwift.xcodeproj">
             </BuildableReference>
          </TestableReference>
-         <TestableReference
-            skipped = "YES">
-            <BuildableReference
-               BuildableIdentifier = "primary"
-               BlueprintIdentifier = "7595C1492072E48C00EA1A5F"
-               BuildableName = "TestsPerformance-Mac.xctest"
-               BlueprintName = "TestsPerformance-Mac"
-               ReferencedContainer = "container:CryptoSwift.xcodeproj">
-            </BuildableReference>
-         </TestableReference>
-         <TestableReference
-            skipped = "YES">
-            <BuildableReference
-               BuildableIdentifier = "primary"
-               BlueprintIdentifier = "7564F04E2072EAEB00CA5A96"
-               BuildableName = "TestsPerformance-iOS.xctest"
-               BlueprintName = "TestsPerformance-iOS"
-               ReferencedContainer = "container:CryptoSwift.xcodeproj">
-            </BuildableReference>
-         </TestableReference>
       </Testables>
    </TestAction>
    <LaunchAction

+ 0 - 64
config/CryptoSwift-Release.xcconfig

@@ -9,74 +9,10 @@
 
 
 BITCODE_GENERATION_MODE = bitcode
-
-
-
-// Use Optimization Profile
-//
-// When this setting is enabled, `clang` will use the optimization profile collected for
-// a target when building it.
-
 CLANG_USE_OPTIMIZATION_PROFILE = NO
-
-
-
-// Generate Debug Symbols
-//
-// Enables or disables generation of debug symbols. When debug symbols are enabled, the
-// level of detail can be controlled by the `DEBUG_INFORMATION_FORMAT` setting.
-
 GCC_GENERATE_DEBUGGING_SYMBOLS = NO
-
-
-
-// Unroll Loops
-//
-// Unrolls loops. Unrolling makes the code larger, but may make it faster by reducing the
-// number of branches executed.
-
 GCC_UNROLL_LOOPS = YES
-
-
-
-// Link-Time Optimization
-//
-// Enabling this setting allows optimization across file boundaries during linking.
-//
-// * *No:* Disabled. Do not use link-time optimization.
-// * *Monolithic Link-Time Optimization:* This mode performs monolithic link-time
-// optimization of binaries, combining all executable code into a single unit and running
-// aggressive compiler optimizations.
-// * *Incremental Link-Time Optimization:* This mode performs partitioned link-time
-// optimization of binaries, inlining between compilation units and running aggressive
-// compiler optimizations on each unit in parallel. This enables fast incremental builds
-// and uses less memory than Monolithic LTO.
-
 LLVM_LTO = YES
-
-
-
-// Disable Safety Checks
-//
-// Disable runtime safety checks when optimizing.
-
 SWIFT_DISABLE_SAFETY_CHECKS = YES
-
-
-
-// Exclusive Access to Memory
-//
-// Enforce exclusive access to memory
-
 SWIFT_ENFORCE_EXCLUSIVE_ACCESS = compile-time
-
-
-
-// Swift Optimization Level
-//
-// * *None:* Compile without any optimization. [-Onone]
-// * *Optimize for Speed:* [-O]
-// * *Optimize for Size:* [-Osize]
-// * *Whole Module Optimization:* [-O -whole-module-optimization]
-
 SWIFT_OPTIMIZATION_LEVEL = -O

+ 1 - 63
config/CryptoSwift-Test.xcconfig

@@ -7,66 +7,4 @@
 
 #include "CryptoSwift-Shared.xcconfig"
 
-
-BITCODE_GENERATION_MODE = bitcode
-
-
-
-// Unroll Loops
-//
-// Unrolls loops. Unrolling makes the code larger, but may make it faster by reducing the
-// number of branches executed.
-
-GCC_UNROLL_LOOPS = YES
-
-
-
-// Link-Time Optimization
-//
-// Enabling this setting allows optimization across file boundaries during linking.
-//
-// * *No:* Disabled. Do not use link-time optimization.
-// * *Monolithic Link-Time Optimization:* This mode performs monolithic link-time
-// optimization of binaries, combining all executable code into a single unit and running
-// aggressive compiler optimizations.
-// * *Incremental Link-Time Optimization:* This mode performs partitioned link-time
-// optimization of binaries, inlining between compilation units and running aggressive
-// compiler optimizations on each unit in parallel. This enables fast incremental builds
-// and uses less memory than Monolithic LTO.
-
-LLVM_LTO = YES
-
-
-
-// Other Swift Flags
-//
-// A list of additional flags to pass to the Swift compiler.
-
-OTHER_SWIFT_FLAGS = $(inherited) -Xfrontend -debug-time-function-bodies
-
-
-
-// Disable Safety Checks
-//
-// Disable runtime safety checks when optimizing.
-
-SWIFT_DISABLE_SAFETY_CHECKS = YES
-
-
-
-// Exclusive Access to Memory
-//
-// Enforce exclusive access to memory
-
-SWIFT_ENFORCE_EXCLUSIVE_ACCESS = compile-time
-
-
-
-// Swift Optimization Level
-//
-// * *None:* Compile without any optimization. [-Onone]
-// * *Optimize for Speed:* [-O]
-// * *Optimize for Size:* [-Osize]
-// * *Whole Module Optimization:* [-O -whole-module-optimization]
-
-SWIFT_OPTIMIZATION_LEVEL = -O
+ENABLE_TESTABILITY = YES

+ 0 - 112
config/CryptoSwift-TestHostApp-Debug.xcconfig

@@ -1,112 +0,0 @@
-//
-// CryptoSwift-TestHostApp-Debug.xcconfig
-//
-// Generated by BuildSettingExtractor on 02/04/2018
-// https://github.com/dempseyatgithub/BuildSettingExtractor
-//
-
-#include "CryptoSwift-TestHostApp-Shared.xcconfig"
-
-
-// Debug Information Format
-//
-// The type of debug information to produce.
-//
-// * *DWARF:* Object files and linked products will use DWARF as the debug information
-// format. [dwarf]
-// * *DWARF with dSYM File:* Object files and linked products will use DWARF as the debug
-// information format, and Xcode will also produce a dSYM file containing the debug
-// information from the individual object files (except that a dSYM file is not needed
-// and will not be created for static library or object file products). [dwarf-with-dsym]
-
-DEBUG_INFORMATION_FORMAT = dwarf
-
-
-
-// Enable Testability
-//
-// When this setting is activated, the product will be built with options appropriate for
-// running automated tests, such as making private interfaces accessible to the tests.
-// This may result in tests running slower than they would without testability enabled.
-
-ENABLE_TESTABILITY = YES
-
-
-
-// Generate Position-Dependent Code
-//
-// Faster function calls for applications. Not appropriate for shared libraries, which
-// need to be position-independent.
-
-GCC_DYNAMIC_NO_PIC = NO
-
-
-
-// Optimization Level
-//
-// Specifies the degree to which the generated code is optimized for speed and binary
-// size.
-//
-// * *None:* Do not optimize. [-O0]
-// With this setting, the compiler's goal is to reduce the cost of compilation and to
-// make debugging produce the expected results. Statements are independent—if you stop
-// the program with a breakpoint between statements, you can then assign a new value to
-// any variable or change the program counter to any other statement in the function and
-// get exactly the results you would expect from the source code.
-// * *Fast:* Optimizing compilation takes somewhat more time, and a lot more memory for a
-// large function. [-O1]
-// With this setting, the compiler tries to reduce code size and execution time,
-// without performing any optimizations that take a great deal of compilation time. In
-// Apple's compiler, strict aliasing, block reordering, and inter-block scheduling are
-// disabled by default when optimizing.
-// * *Faster:* The compiler performs nearly all supported optimizations that do not
-// involve a space-speed tradeoff. [-O2]
-// With this setting, the compiler does not perform loop unrolling or function
-// inlining, or register renaming. As compared to the `Fast` setting, this setting
-// increases both compilation time and the performance of the generated code.
-// * *Fastest:* Turns on all optimizations specified by the `Faster` setting and also
-// turns on function inlining and register renaming options. This setting may result in a
-// larger binary. [-O3]
-// * *Fastest, Smallest:* Optimize for size. This setting enables all `Faster`
-// optimizations that do not typically increase code size. It also performs further
-// optimizations designed to reduce code size. [-Os]
-// * *Fastest, Aggressive Optimizations:* This setting enables `Fastest` but also enables
-// aggressive optimizations that may break strict standards compliance but should work
-// well on well-behaved code. [-Ofast]
-
-GCC_OPTIMIZATION_LEVEL = 0
-
-
-
-// Preprocessor Macros
-//
-// Space-separated list of preprocessor macros of the form `foo` or `foo=bar`.
-
-GCC_PREPROCESSOR_DEFINITIONS = $(inherited) DEBUG=1
-
-
-
-// Produce debugging information
-//
-// Produce debugging information. This information is required for shader profiling.
-
-MTL_ENABLE_DEBUG_INFO = YES
-
-
-
-// Build Active Architecture Only
-//
-// If enabled, only the active architecture is built.
-
-ONLY_ACTIVE_ARCH = YES
-
-
-
-// Swift Optimization Level
-//
-// * *None:* Compile without any optimization. [-Onone]
-// * *Optimize for Speed:* [-O]
-// * *Optimize for Size:* [-Osize]
-// * *Whole Module Optimization:* [-O -whole-module-optimization]
-
-SWIFT_OPTIMIZATION_LEVEL = -Onone

+ 0 - 59
config/CryptoSwift-TestHostApp-Release.xcconfig

@@ -1,59 +0,0 @@
-//
-// CryptoSwift-TestHostApp-Release.xcconfig
-//
-// Generated by BuildSettingExtractor on 02/04/2018
-// https://github.com/dempseyatgithub/BuildSettingExtractor
-//
-
-#include "CryptoSwift-TestHostApp-Shared.xcconfig"
-
-
-// Debug Information Format
-//
-// The type of debug information to produce.
-//
-// * *DWARF:* Object files and linked products will use DWARF as the debug information
-// format. [dwarf]
-// * *DWARF with dSYM File:* Object files and linked products will use DWARF as the debug
-// information format, and Xcode will also produce a dSYM file containing the debug
-// information from the individual object files (except that a dSYM file is not needed
-// and will not be created for static library or object file products). [dwarf-with-dsym]
-
-DEBUG_INFORMATION_FORMAT = dwarf-with-dsym
-
-
-
-// Enable Foundation Assertions
-//
-// Controls whether assertion logic provided by `NSAssert` is included in the
-// preprocessed source code or is elided during preprocessing. Disabling assertions can
-// improve code performance.
-
-ENABLE_NS_ASSERTIONS = NO
-
-
-
-// Produce debugging information
-//
-// Produce debugging information. This information is required for shader profiling.
-
-MTL_ENABLE_DEBUG_INFO = NO
-
-
-
-// Swift Optimization Level
-//
-// * *None:* Compile without any optimization. [-Onone]
-// * *Optimize for Speed:* [-O]
-// * *Optimize for Size:* [-Osize]
-// * *Whole Module Optimization:* [-O -whole-module-optimization]
-
-SWIFT_OPTIMIZATION_LEVEL = -O
-
-
-
-// Validate Built Product
-//
-// If enabled, perform validation checks on the product as part of the build process.
-
-VALIDATE_PRODUCT = YES

+ 0 - 45
config/CryptoSwift-TestHostApp-Test.xcconfig

@@ -7,53 +7,8 @@
 
 #include "CryptoSwift-TestHostApp-Shared.xcconfig"
 
-
-// Debug Information Format
-//
-// The type of debug information to produce.
-//
-// * *DWARF:* Object files and linked products will use DWARF as the debug information
-// format. [dwarf]
-// * *DWARF with dSYM File:* Object files and linked products will use DWARF as the debug
-// information format, and Xcode will also produce a dSYM file containing the debug
-// information from the individual object files (except that a dSYM file is not needed
-// and will not be created for static library or object file products). [dwarf-with-dsym]
-
 DEBUG_INFORMATION_FORMAT = dwarf-with-dsym
-
-
-
-// Enable Foundation Assertions
-//
-// Controls whether assertion logic provided by `NSAssert` is included in the
-// preprocessed source code or is elided during preprocessing. Disabling assertions can
-// improve code performance.
-
 ENABLE_NS_ASSERTIONS = NO
-
-
-
-// Produce debugging information
-//
-// Produce debugging information. This information is required for shader profiling.
-
 MTL_ENABLE_DEBUG_INFO = NO
-
-
-
-// Swift Optimization Level
-//
-// * *None:* Compile without any optimization. [-Onone]
-// * *Optimize for Speed:* [-O]
-// * *Optimize for Size:* [-Osize]
-// * *Whole Module Optimization:* [-O -whole-module-optimization]
-
 SWIFT_OPTIMIZATION_LEVEL = -O
-
-
-
-// Validate Built Product
-//
-// If enabled, perform validation checks on the product as part of the build process.
-
 VALIDATE_PRODUCT = YES

+ 0 - 46
config/Project-Debug.xcconfig

@@ -7,55 +7,9 @@
 
 #include "Project-Shared.xcconfig"
 
-
-// Strip Debug Symbols During Copy
-//
-// Specifies whether binary files that are copied during the build, such as in a Copy
-// Bundle Resources or Copy Files build phase, should be stripped of debugging symbols.
-// It does not cause the linked product of a target to be stripped—use
-// `STRIP_INSTALLED_PRODUCT` for that.
-
 COPY_PHASE_STRIP = NO
-
-
-
-// Enable Testability
-//
-// When this setting is activated, the product will be built with options appropriate for
-// running automated tests, such as making private interfaces accessible to the tests.
-// This may result in tests running slower than they would without testability enabled.
-
-ENABLE_TESTABILITY = YES
-
-
-
-// Generate Position-Dependent Code
-//
-// Faster function calls for applications. Not appropriate for shared libraries, which
-// need to be position-independent.
-
 GCC_DYNAMIC_NO_PIC = NO
-
-
-
-// Preprocessor Macros
-//
-// Space-separated list of preprocessor macros of the form `foo` or `foo=bar`.
-
 GCC_PREPROCESSOR_DEFINITIONS = $(inherited) DEBUG=1
-
-// Active Compilation Conditions
-//
-// A list of compilation conditions to enable for conditional compilation expressions.
-
 SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG
-
 METAL_ENABLE_DEBUG_INFO = YES
-
-
-
-// Build Active Architecture Only
-//
-// If enabled, only the active architecture is built.
-
 ONLY_ACTIVE_ARCH = YES

+ 0 - 70
config/Project-Release.xcconfig

@@ -7,79 +7,9 @@
 
 #include "Project-Shared.xcconfig"
 
-
-// Use Optimization Profile
-//
-// When this setting is enabled, `clang` will use the optimization profile collected for
-// a target when building it.
-
 CLANG_USE_OPTIMIZATION_PROFILE = YES
-
-
-
-// Strip Debug Symbols During Copy
-//
-// Specifies whether binary files that are copied during the build, such as in a Copy
-// Bundle Resources or Copy Files build phase, should be stripped of debugging symbols.
-// It does not cause the linked product of a target to be stripped—use
-// `STRIP_INSTALLED_PRODUCT` for that.
-
 COPY_PHASE_STRIP = YES
-
-
-
-// Enable Foundation Assertions
-//
-// Controls whether assertion logic provided by `NSAssert` is included in the
-// preprocessed source code or is elided during preprocessing. Disabling assertions can
-// improve code performance.
-
 ENABLE_NS_ASSERTIONS = NO
-
-
-
-// Optimization Level
-//
-// Specifies the degree to which the generated code is optimized for speed and binary
-// size.
-//
-// * *None:* Do not optimize. [-O0]
-// With this setting, the compiler's goal is to reduce the cost of compilation and to
-// make debugging produce the expected results. Statements are independent—if you stop
-// the program with a breakpoint between statements, you can then assign a new value to
-// any variable or change the program counter to any other statement in the function and
-// get exactly the results you would expect from the source code.
-// * *Fast:* Optimizing compilation takes somewhat more time, and a lot more memory for a
-// large function. [-O1]
-// With this setting, the compiler tries to reduce code size and execution time,
-// without performing any optimizations that take a great deal of compilation time. In
-// Apple's compiler, strict aliasing, block reordering, and inter-block scheduling are
-// disabled by default when optimizing.
-// * *Faster:* The compiler performs nearly all supported optimizations that do not
-// involve a space-speed tradeoff. [-O2]
-// With this setting, the compiler does not perform loop unrolling or function
-// inlining, or register renaming. As compared to the `Fast` setting, this setting
-// increases both compilation time and the performance of the generated code.
-// * *Fastest:* Turns on all optimizations specified by the `Faster` setting and also
-// turns on function inlining and register renaming options. This setting may result in a
-// larger binary. [-O3]
-// * *Fastest, Smallest:* Optimize for size. This setting enables all `Faster`
-// optimizations that do not typically increase code size. It also performs further
-// optimizations designed to reduce code size. [-Os]
-// * *Fastest, Aggressive Optimizations:* This setting enables `Fastest` but also enables
-// aggressive optimizations that may break strict standards compliance but should work
-// well on well-behaved code. [-Ofast]
-
 GCC_OPTIMIZATION_LEVEL = fast
-
-
-
 METAL_ENABLE_DEBUG_INFO = NO
-
-
-
-// Validate Built Product
-//
-// If enabled, perform validation checks on the product as part of the build process.
-
 VALIDATE_PRODUCT = YES

+ 14 - 457
config/Project-Shared.xcconfig

@@ -7,521 +7,78 @@
 
 MARKETING_VERSION = 1.1.2
 
-PRODUCT_NAME = ${TARGET_NAME}
+SUPPORTED_PLATFORMS = iphonesimulator iphoneos macosx appletvos watchos appletvsimulator watchsimulator
+
+SWIFT_COMPILATION_MODE = incremental
+SWIFT_VERSION = 5.0
+
+TARGETED_DEVICE_FAMILY = 1,2,3,4
+
+TVOS_DEPLOYMENT_TARGET = 9.0
+IPHONEOS_DEPLOYMENT_TARGET = 8.0
+MACOSX_DEPLOYMENT_TARGET = 10.12
+WATCHOS_DEPLOYMENT_TARGET = 2.0
 
 DEVELOPMENT_TEAM =
 PROVISIONING_PROFILE =
 PROVISIONING_PROFILE_SPECIFIER =
 CODE_SIGN_IDENTITY =
 CODE_SIGN_STYLE = Manual
+CODE_SIGNING_REQUIRED = NO
 
-// Misuse of 'nonnull'
-//
-// Check for misuses of `nonnull` parameter and return types.
+PRODUCT_NAME = ${TARGET_NAME}
 
 CLANG_ANALYZER_NONNULL = YES
-
-// Suspicious Conversions of NSNumber and CFNumberRef
-//
-// Warn when a number object, such as an instance of `NSNumber`, `CFNumberRef`,
-// `OSNumber`, or `OSBoolean` is compared or converted to a primitive value instead of
-// another object.
-
 CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE
 
-// Always Search User Paths (Deprecated)
-//
-// This setting is deprecated as of Xcode 8.3 and may not be supported in future
-// versions. It is recommended that you disable the setting.
-//
-// If enabled, both `#include <header.h>`-style and `#include "header.h"`-style
-// directives search the paths in `USER_HEADER_SEARCH_PATHS` before
-// `HEADER_SEARCH_PATHS`. As a consequence, user headers, such as your own `String.h`
-// header, have precedence over system headers when using `#include <header.h>`. This is
-// done using the `-iquote` flag for the paths provided in `USER_HEADER_SEARCH_PATHS`. If
-// disabled and your compiler fully supports separate user paths, user headers are only
-// accessible with `#include "header.h"`-style preprocessor directives.
-//
-// For backwards compatibility reasons, this setting is enabled by default. Disabling it
-// is strongly recommended.
-
 ALWAYS_SEARCH_USER_PATHS = NO
 
-
-
-// C++ Language Dialect
-//
-// Choose a standard or non-standard C++ language dialect. Options include:
-//
-// * *C++98:* Accept ISO C++ 1998 with amendments, but not GNU extensions. [-std=c++98]
-// * *GNU++98:* Accept ISO C++ 1998 with amendments and GNU extensions. [-std=gnu++98]
-// * *C++11:* Accept the ISO C++ 2011 standard with amendments, but not GNU extensions.
-// [-std=c++11]
-// * *GNU++11:* Accept the ISO C++ 2011 standard with amendments and GNU extensions.
-// [-std=gnu++11]
-// * *C++14:* Accept the ISO C++ 2014 standard with amendments, but not GNU extensions.
-// [-std=c++14]
-// * *GNU++14:* Accept the ISO C++ 2014 standard with amendments and GNU extensions.
-// [-std=gnu++14]
-// * *C++17:* Accept the ISO C++ 2017 standard with amendments, but not GNU extensions.
-// [-std=c++17]
-// * *GNU++17:* Accept the ISO C++ 2017 standard with amendments and GNU extensions.
-// [-std=gnu++17]
-// * *Compiler Default:* Tells the compiler to use its default C++ language dialect. This
-// is normally the best choice unless you have specific needs. (Currently equivalent to
-// GNU++98.)
-
 CLANG_CXX_LANGUAGE_STANDARD = gnu++0x
-
-
-
-// C++ Standard Library
-//
-// Choose a version of the C++ standard library to use.
-//
-// * *libstdc++:* A traditional C++ standard library that works with GCC and the LLVM
-// Compiler (default).
-// * *libc++:* A highly optimized C++ standard library that works only with the LLVM
-// Compiler, and is designed to support new C++11 features.
-
 CLANG_CXX_LIBRARY = libc++
-
-
-
-// Enable Modules (C and Objective-C)
-//
-// Enables the use of modules for system APIs. System headers are imported as semantic
-// modules instead of raw headers. This can result in faster builds and project indexing.
-
 CLANG_ENABLE_MODULES = YES
-
-
-
-// Objective-C Automatic Reference Counting
-//
-// Compiles reference-counted Objective-C code (when garbage collection is not enabled)
-// to use Automatic Reference Counting. Code compiled using automated reference counting
-// is compatible with other code (such as frameworks) compiled using either manual
-// reference counting (for example, traditional `retain` and `release` messages) or
-// automated reference counting. Using this mode is currently incompatible with compiling
-// code to use Objective-C Garbage Collection.
-
 CLANG_ENABLE_OBJC_ARC = YES
-
-
-// Weak References in Manual Retain Release
-//
-// Compiles Objective-C code to enable weak references for code compiled with manual
-// retain release (MRR) semantics.
-
 CLANG_ENABLE_OBJC_WEAK = YES
 
-
-// Duplicate Method Definitions
-//
-// Warn about declaring the same method more than once within the same `@interface`.
-
 CLANG_WARN__DUPLICATE_METHOD_MATCH = YES
-
-
-
-// Block Capture of Autoreleasing
-//
-// Warn about block captures of implicitly autoreleasing parameters.
-
 CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES
-
-
-
-// Implicit Boolean Conversions
-//
-// Warn about implicit conversions to boolean values that are suspicious. For example,
-// writing `if (foo)` where `foo` is the name a function will trigger a warning.
-
 CLANG_WARN_BOOL_CONVERSION = YES
-
-
-
-// Suspicious Commas
-//
-// Warn about suspicious uses of the comma operator.
-
 CLANG_WARN_COMMA = YES
-
-
-
-// Implicit Constant Conversions
-//
-// Warn about implicit conversions of constant values that cause the constant value to
-// change, either through a loss of precision, or entirely in its meaning.
-
 CLANG_WARN_CONSTANT_CONVERSION = YES
-
-
-
-// Overriding Deprecated Objective-C Methods
-//
-// Warn if an Objective-C class either subclasses a deprecated class or overrides a
-// method that has been marked deprecated or unavailable.
-
 CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES
-
-
-
-// Direct usage of 'isa'
-//
-// Warn about direct accesses to the Objective-C `isa` pointer instead of using a runtime
-// API.
-
 CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR
-
-
-
-// Empty Loop Bodies
-//
-// Warn about loop bodies that are suspiciously empty.
-
 CLANG_WARN_EMPTY_BODY = YES
-
-
-
-// Implicit Enum Conversions
-//
-// Warn about implicit conversions between different kinds of enum values. For example,
-// this can catch issues when using the wrong enum flag as an argument to a function or
-// method.
-
 CLANG_WARN_ENUM_CONVERSION = YES
-
-
-
-// Infinite Recursion
-//
-// Warn if all paths through a function call itself.
-
 CLANG_WARN_INFINITE_RECURSION = YES
-
-
-
-// Implicit Integer to Pointer Conversions
-//
-// Warn about implicit conversions between pointers and integers. For example, this can
-// catch issues when one incorrectly intermixes using `NSNumber*`'s and raw integers.
-
 CLANG_WARN_INT_CONVERSION = YES
-
-
-
-// Implicit Non-Literal Null Conversions
-//
-// Warn about non-literal expressions that evaluate to zero being treated as a null
-// pointer.
-
 CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES
-
-
-
-// Implicit retain of 'self' within blocks
-//
-// Warn about implicit retains of `self` within blocks, which can create a retain-cycle.
-
 CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES
-
-
-
-// Implicit Objective-C Literal Conversions
-//
-// Warn about implicit conversions from Objective-C literals to values of incompatible
-// type.
-
 CLANG_WARN_OBJC_LITERAL_CONVERSION = YES
-
-
-
-// Unintentional Root Class
-//
-// Warn about classes that unintentionally do not subclass a root class, such as
-// `NSObject`.
-
 CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR
-
-
-
-// Range-based For Loops
-//
-// Warn about ranged-based for loops.
-
 CLANG_WARN_RANGE_LOOP_ANALYSIS = YES
-
-
-
-// Strict Prototypes
-//
-// Warn about non-prototype declarations.
-
 CLANG_WARN_STRICT_PROTOTYPES = YES
-
-
-
-// Suspicious Moves
-//
-// Warn about suspicious uses of `std::move`.
-
 CLANG_WARN_SUSPICIOUS_MOVE = YES
-
-
-
-// Unreachable Code
-//
-// Warns about potentially unreachable code.
-
 CLANG_WARN_UNREACHABLE_CODE = YES
-
-
-// Documentation Comments
-//
-// Warns about issues in documentation comments (`doxygen`-style) such as missing or
-// incorrect documentation tags.
-
 CLANG_WARN_DOCUMENTATION_COMMENTS = YES
-
-
-// Unguarded availability
-//
-// Warn if an API that is newer than the deployment target is used without "if
-// (@available(...))" guards.
-
 CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE
 
-
-
-CODE_SIGNING_REQUIRED = NO
-
-
-
-// Current Project Version
-//
-// This setting defines the current version of the project. The value must be a integer
-// or floating point number, such as `57` or `365.8`.
-
-CURRENT_PROJECT_VERSION = 1
-
-
-
-// Debug Information Format
-//
-// The type of debug information to produce.
-//
-// * *DWARF:* Object files and linked products will use DWARF as the debug information
-// format. [dwarf]
-// * *DWARF with dSYM File:* Object files and linked products will use DWARF as the debug
-// information format, and Xcode will also produce a dSYM file containing the debug
-// information from the individual object files (except that a dSYM file is not needed
-// and will not be created for static library or object file products). [dwarf-with-dsym]
-
 DEBUG_INFORMATION_FORMAT = dwarf
-
-
-
-// Defines Module
-//
-// If enabled, the product will be treated as defining its own module. This enables
-// automatic production of LLVM module map files when appropriate, and allows the product
-// to be imported as a module.
-
 DEFINES_MODULE = YES
 
-
-
-// Enable Strict Checking of objc_msgSend Calls
-//
-// Controls whether `objc_msgSend` calls must be cast to the appropriate function pointer
-// type before being called.
-
 ENABLE_STRICT_OBJC_MSGSEND = YES
 
-
-
-// C Language Dialect
-//
-// Choose a standard or non-standard C language dialect.
-//
-// * *ANSI C:* Accept ISO C90 and ISO C++, turning off GNU extensions that are
-// incompatible. [-ansi]
-// Incompatible GNU extensions include the `asm`, `inline`, and `typeof` keywords (but
-// not the equivalent `\_\_asm\_\_`, `\_\_inline\_\_`, and `\_\_typeof\_\_` forms), and
-// the `//` syntax for comments.
-// This setting also enables trigraphs.
-// * *C89:* Accept ISO C90 (1990), but not GNU extensions. [-std=c89]
-// * *GNU89:* Accept ISO C90 and GNU extensions. [-std=gnu89]
-// * *C99:* Accept ISO C99 (1999), but not GNU extensions. [-std=c99]
-// * *GNU99:* Accept ISO C99 and GNU extensions. [-std=gnu99]
-// * *C11:* Accept ISO C11 (2011), but not GNU extensions. [-std=c11]
-// * *GNU11:* Accept ISO C11 and GNU extensions. [-std=gnu11]
-// * *Compiler Default:* Tells the compiler to use its default C language dialect. This
-// is normally the best choice unless you have specific needs. (Currently equivalent to
-// GNU99.)
-
 GCC_C_LANGUAGE_STANDARD = gnu99
-
-
-
-// No Common Blocks
-//
-// In C, allocate even uninitialized global variables in the data section of the object
-// file, rather than generating them as common blocks. This has the effect that if the
-// same variable is declared (without `extern`) in two different compilations, you will
-// get an error when you link them.
-
 GCC_NO_COMMON_BLOCKS = YES
-
-
-
-// Implicit Conversion to 32 Bit Type
-//
-// Warn if a value is implicitly converted from a 64-bit type to a 32-bit type. This is a
-// subset of the warnings provided by -Wconversion.
-
 GCC_WARN_64_TO_32_BIT_CONVERSION = YES
-
-
-
-// Mismatched Return Type
-//
-// Causes warnings to be emitted when a function with a defined return type (not `void`)
-// contains a return statement without a return-value. Also emits a warning when a
-// function is defined without specifying a return type.
-
 GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR
-
-
-
-// Undeclared Selector
-//
-// Warn if a `@selector(...)` expression referring to an undeclared selector is found. A
-// selector is considered undeclared if no method with that name has been declared before
-// the `@selector(...)` expression, either explicitly in an `@interface` or `@protocol`
-// declaration, or implicitly in an `@implementation` section. This option always
-// performs its checks as soon as a `@selector(...)` expression is found, while
-// `-Wselector` only performs its checks in the final stage of compilation. This also
-// enforces the coding style convention that methods and selectors must be declared
-// before being used.
-
 GCC_WARN_UNDECLARED_SELECTOR = YES
-
-
-
-// Uninitialized Variables
-//
-// Warn if a variable might be clobbered by a `setjmp` call or if an automatic variable
-// is used without prior initialization.
-//
-// The compiler may not detect all cases where an automatic variable is initialized or
-// all usage patterns that may lead to use prior to initialization. You can toggle
-// between the normal uninitialized value checking or the more aggressive (conservative)
-// checking, which finds more issues but the checking is much stricter.
-
 GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE
-
-
-
-// Unused Functions
-//
-// Warn whenever a static function is declared but not defined or a noninline static
-// function is unused.
-
 GCC_WARN_UNUSED_FUNCTION = YES
-
-
-
-// Unused Labels
-//
-// Warn whenever a label is declared but not used.
-
 GCC_WARN_UNUSED_LABEL = YES
-
-
-
-// Unused Variables
-//
-// Warn whenever a local variable or nonconstant static variable is unused aside from its
-// declaration.
-
 GCC_WARN_UNUSED_VARIABLE = YES
 
-
-IPHONEOS_DEPLOYMENT_TARGET = 8.0
-
-
-
-// macOS Deployment Target
-//
-// Code will load on this and later versions of macOS. Framework APIs that are
-// unavailable in earlier versions will be weak-linked; your code should check for `null`
-// function pointers or specific system versions before calling newer APIs.
-
-MACOSX_DEPLOYMENT_TARGET = 10.12
-
-
-
-// Supported Platforms
-//
-// The list of supported platforms from which a base SDK can be used. This setting is
-// used if the product can be built for multiple platforms using different SDKs.
-
-SUPPORTED_PLATFORMS = iphonesimulator iphoneos macosx appletvos watchos appletvsimulator watchsimulator
-
-
-
-SWIFT_COMPILATION_MODE = wholemodule
-
-
-
-// Swift Language Version
-//
-//
-
-SWIFT_VERSION = 5.0
-
-
-
-// Targeted Device Family
-//
-// The build system uses the selected device to set the correct value for the
-// `UIDeviceFamily` key it adds to the target's `Info.plist` file. This also drives the
-// --target-device flag to actool, which determines the idioms selected during catalog
-// compilation for iOS platforms.
-
-TARGETED_DEVICE_FAMILY = 1,2,3,4
-
-
-
-TVOS_DEPLOYMENT_TARGET = 9.0
-
-
-
-// Versioning Name Prefix
-//
-// Used as a prefix for the name of the version info symbol in the generated versioning
-// source file. If you prefix your exported symbols you will probably want to set this to
-// the same prefix.
-
 VERSION_INFO_PREFIX =
-
-
-
-// Versioning System
-//
-// Selects the process used for version-stamping generated files.
-//
-// * *None:* Use no versioning system.
-// * *Apple Generic:* Use the current project version setting. [apple-generic]
-
 VERSIONING_SYSTEM = apple-generic
-
-
-
-WATCHOS_DEPLOYMENT_TARGET = 2.0
+CURRENT_PROJECT_VERSION = 1
 
 // XCFramework
 BUILD_LIBRARY_FOR_DISTRIBUTION = YES

+ 0 - 108
config/Project-Test.xcconfig

@@ -1,108 +0,0 @@
-//
-// Project-Test.xcconfig
-//
-// Generated by BuildSettingExtractor on 02/04/2018
-// https://github.com/dempseyatgithub/BuildSettingExtractor
-//
-
-#include "Project-Shared.xcconfig"
-
-
-// Strip Debug Symbols During Copy
-//
-// Specifies whether binary files that are copied during the build, such as in a Copy
-// Bundle Resources or Copy Files build phase, should be stripped of debugging symbols.
-// It does not cause the linked product of a target to be stripped—use
-// `STRIP_INSTALLED_PRODUCT` for that.
-
-COPY_PHASE_STRIP = NO
-
-
-
-// Enable Foundation Assertions
-//
-// Controls whether assertion logic provided by `NSAssert` is included in the
-// preprocessed source code or is elided during preprocessing. Disabling assertions can
-// improve code performance.
-
-ENABLE_NS_ASSERTIONS = NO
-
-
-
-// Enable Testability
-//
-// When this setting is activated, the product will be built with options appropriate for
-// running automated tests, such as making private interfaces accessible to the tests.
-// This may result in tests running slower than they would without testability enabled.
-
-ENABLE_TESTABILITY = YES
-
-
-
-// Optimization Level
-//
-// Specifies the degree to which the generated code is optimized for speed and binary
-// size.
-//
-// * *None:* Do not optimize. [-O0]
-// With this setting, the compiler's goal is to reduce the cost of compilation and to
-// make debugging produce the expected results. Statements are independent—if you stop
-// the program with a breakpoint between statements, you can then assign a new value to
-// any variable or change the program counter to any other statement in the function and
-// get exactly the results you would expect from the source code.
-// * *Fast:* Optimizing compilation takes somewhat more time, and a lot more memory for a
-// large function. [-O1]
-// With this setting, the compiler tries to reduce code size and execution time,
-// without performing any optimizations that take a great deal of compilation time. In
-// Apple's compiler, strict aliasing, block reordering, and inter-block scheduling are
-// disabled by default when optimizing.
-// * *Faster:* The compiler performs nearly all supported optimizations that do not
-// involve a space-speed tradeoff. [-O2]
-// With this setting, the compiler does not perform loop unrolling or function
-// inlining, or register renaming. As compared to the `Fast` setting, this setting
-// increases both compilation time and the performance of the generated code.
-// * *Fastest:* Turns on all optimizations specified by the `Faster` setting and also
-// turns on function inlining and register renaming options. This setting may result in a
-// larger binary. [-O3]
-// * *Fastest, Smallest:* Optimize for size. This setting enables all `Faster`
-// optimizations that do not typically increase code size. It also performs further
-// optimizations designed to reduce code size. [-Os]
-// * *Fastest, Aggressive Optimizations:* This setting enables `Fastest` but also enables
-// aggressive optimizations that may break strict standards compliance but should work
-// well on well-behaved code. [-Ofast]
-
-GCC_OPTIMIZATION_LEVEL = fast
-
-
-
-// Preprocessor Macros
-//
-// Space-separated list of preprocessor macros of the form `foo` or `foo=bar`.
-
-GCC_PREPROCESSOR_DEFINITIONS = $(inherited) DEBUG=1 CI=1
-
-// Active Compilation Conditions
-//
-// A list of compilation conditions to enable for conditional compilation expressions.
-
-SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG
-
-
-
-METAL_ENABLE_DEBUG_INFO = NO
-
-
-
-// Build Active Architecture Only
-//
-// If enabled, only the active architecture is built.
-
-ONLY_ACTIVE_ARCH = YES
-
-
-
-// Validate Built Product
-//
-// If enabled, perform validation checks on the product as part of the build process.
-
-VALIDATE_PRODUCT = YES

+ 0 - 37
config/Tests-Debug.xcconfig

@@ -1,37 +0,0 @@
-//
-// Tests-Debug.xcconfig
-//
-// Generated by BuildSettingExtractor on 02/04/2018
-// https://github.com/dempseyatgithub/BuildSettingExtractor
-//
-
-#include "Tests-Shared.xcconfig"
-
-
-// Link-Time Optimization
-//
-// Enabling this setting allows optimization across file boundaries during linking.
-//
-// * *No:* Disabled. Do not use link-time optimization.
-// * *Monolithic Link-Time Optimization:* This mode performs monolithic link-time
-// optimization of binaries, combining all executable code into a single unit and running
-// aggressive compiler optimizations.
-// * *Incremental Link-Time Optimization:* This mode performs partitioned link-time
-// optimization of binaries, inlining between compilation units and running aggressive
-// compiler optimizations on each unit in parallel. This enables fast incremental builds
-// and uses less memory than Monolithic LTO.
-
-LLVM_LTO = NO
-
-
-
-METAL_ENABLE_DEBUG_INFO = YES
-
-// Swift Optimization Level
-//
-// * *None:* Compile without any optimization. [-Onone]
-// * *Optimize for Speed:* [-O]
-// * *Optimize for Size:* [-Osize]
-// * *Whole Module Optimization:* [-O -whole-module-optimization]
-
-SWIFT_OPTIMIZATION_LEVEL = -Onone

+ 0 - 92
config/Tests-Release.xcconfig

@@ -1,92 +0,0 @@
-//
-// Tests-Release.xcconfig
-//
-// Generated by BuildSettingExtractor on 02/04/2018
-// https://github.com/dempseyatgithub/BuildSettingExtractor
-//
-
-#include "Tests-Shared.xcconfig"
-
-
-// Optimization Level
-//
-// Specifies the degree to which the generated code is optimized for speed and binary
-// size.
-//
-// * *None:* Do not optimize. [-O0]
-// With this setting, the compiler's goal is to reduce the cost of compilation and to
-// make debugging produce the expected results. Statements are independent—if you stop
-// the program with a breakpoint between statements, you can then assign a new value to
-// any variable or change the program counter to any other statement in the function and
-// get exactly the results you would expect from the source code.
-// * *Fast:* Optimizing compilation takes somewhat more time, and a lot more memory for a
-// large function. [-O1]
-// With this setting, the compiler tries to reduce code size and execution time,
-// without performing any optimizations that take a great deal of compilation time. In
-// Apple's compiler, strict aliasing, block reordering, and inter-block scheduling are
-// disabled by default when optimizing.
-// * *Faster:* The compiler performs nearly all supported optimizations that do not
-// involve a space-speed tradeoff. [-O2]
-// With this setting, the compiler does not perform loop unrolling or function
-// inlining, or register renaming. As compared to the `Fast` setting, this setting
-// increases both compilation time and the performance of the generated code.
-// * *Fastest:* Turns on all optimizations specified by the `Faster` setting and also
-// turns on function inlining and register renaming options. This setting may result in a
-// larger binary. [-O3]
-// * *Fastest, Smallest:* Optimize for size. This setting enables all `Faster`
-// optimizations that do not typically increase code size. It also performs further
-// optimizations designed to reduce code size. [-Os]
-// * *Fastest, Aggressive Optimizations:* This setting enables `Fastest` but also enables
-// aggressive optimizations that may break strict standards compliance but should work
-// well on well-behaved code. [-Ofast]
-
-GCC_OPTIMIZATION_LEVEL = fast
-
-
-
-// Unroll Loops
-//
-// Unrolls loops. Unrolling makes the code larger, but may make it faster by reducing the
-// number of branches executed.
-
-GCC_UNROLL_LOOPS = YES
-
-
-
-// Link-Time Optimization
-//
-// Enabling this setting allows optimization across file boundaries during linking.
-//
-// * *No:* Disabled. Do not use link-time optimization.
-// * *Monolithic Link-Time Optimization:* This mode performs monolithic link-time
-// optimization of binaries, combining all executable code into a single unit and running
-// aggressive compiler optimizations.
-// * *Incremental Link-Time Optimization:* This mode performs partitioned link-time
-// optimization of binaries, inlining between compilation units and running aggressive
-// compiler optimizations on each unit in parallel. This enables fast incremental builds
-// and uses less memory than Monolithic LTO.
-
-LLVM_LTO = YES
-
-
-
-METAL_ENABLE_DEBUG_INFO = NO
-
-
-
-// Disable Safety Checks
-//
-// Disable runtime safety checks when optimizing.
-
-SWIFT_DISABLE_SAFETY_CHECKS = YES
-
-
-
-// Swift Optimization Level
-//
-// * *None:* Compile without any optimization. [-Onone]
-// * *Optimize for Speed:* [-O]
-// * *Optimize for Size:* [-Osize]
-// * *Whole Module Optimization:* [-O -whole-module-optimization]
-
-SWIFT_OPTIMIZATION_LEVEL = -O

+ 1 - 55
config/Tests-Shared.xcconfig

@@ -5,66 +5,12 @@
 // https://github.com/dempseyatgithub/BuildSettingExtractor
 //
 
-
-// Always Embed Swift Standard Libraries
-//
-// Always embed the Swift standard libraries in the target's products, even if the target
-// does not contain any Swift code.  For example, this should be enabled if the target is
-// embedding other products which contain Swift, or if it is a test target which does not
-// contain Swift but which is testing a product which does.  This setting only applies to
-// wrapped products, not to standalone binary products.
-
-ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES
-
-
-
-// Header Search Paths
-//
-// This is a list of paths to folders to be searched by the compiler for included or
-// imported header files when compiling C, Objective-C, C++, or Objective-C++. Paths are
-// delimited by whitespace, so any paths with spaces in them need to be properly quoted.
-
 HEADER_SEARCH_PATHS = $(inherited) includes/**
 
-
-
-// Info.plist File
-//
-// The project-relative path to the property list file that contains the `Info.plist`
-// information used by bundles. For details on information property list files, see
-// [Information Property List
-// Files](https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPRuntimeConfig/Articles/ConfigFiles.html#//apple_ref/doc/uid/20002091-CJBJIEDH)
-// in [Runtime Configuration
-// Guidelines](https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPRuntimeConfig/000-Introduction/introduction.html).
-
 INFOPLIST_FILE = Tests/${TARGET_NAME}/Info.plist
 
-
-
-// Runpath Search Paths
-//
-// This is a list of paths to be added to the `runpath` search path list for the image
-// being created. At runtime, `dyld` uses the `runpath` when searching for dylibs whose
-// load path begins with `@rpath/`. See [Dynamic Library Programming
-// Topics](https://developer.apple.com/library/content/documentation/DeveloperTools/Conceptual/DynamicLibraries/000-Introduction/Introduction.html).
-
 LD_RUNPATH_SEARCH_PATHS = $(inherited) @executable_path/Frameworks @loader_path/Frameworks @loader_path/../Frameworks @executable_path/../Frameworks
 
-
-
-// Product Bundle Identifier
-//
-// A string that uniquely identifies the bundle. The string should be in reverse DNS
-// format using only alphanumeric characters (`A-Z`, `a-z`, `0-9`), the dot (`.`), and
-// the hyphen (`-`). This value is used as the `CFBundleIdentifier` in the `Info.plist`
-// of the built bundle.
-
 PRODUCT_BUNDLE_IDENTIFIER = com.krzyzanowskim.${PRODUCT_NAME:rfc1034identifier}
 
-
-
-// Objective-C Bridging Header
-//
-// Path to the header defining the Objective-C interfaces to be exposed in Swift.
-
-SWIFT_OBJC_BRIDGING_HEADER = Tests/${TARGET_NAME}/Bridging.h
+OTHER_SWIFT_FLAGS = $(inherited) -Xfrontend -debug-time-function-bodies

+ 9 - 78
config/Tests-Test.xcconfig

@@ -7,86 +7,17 @@
 
 #include "Tests-Shared.xcconfig"
 
-
-// Optimization Level
-//
-// Specifies the degree to which the generated code is optimized for speed and binary
-// size.
-//
-// * *None:* Do not optimize. [-O0]
-// With this setting, the compiler's goal is to reduce the cost of compilation and to
-// make debugging produce the expected results. Statements are independent—if you stop
-// the program with a breakpoint between statements, you can then assign a new value to
-// any variable or change the program counter to any other statement in the function and
-// get exactly the results you would expect from the source code.
-// * *Fast:* Optimizing compilation takes somewhat more time, and a lot more memory for a
-// large function. [-O1]
-// With this setting, the compiler tries to reduce code size and execution time,
-// without performing any optimizations that take a great deal of compilation time. In
-// Apple's compiler, strict aliasing, block reordering, and inter-block scheduling are
-// disabled by default when optimizing.
-// * *Faster:* The compiler performs nearly all supported optimizations that do not
-// involve a space-speed tradeoff. [-O2]
-// With this setting, the compiler does not perform loop unrolling or function
-// inlining, or register renaming. As compared to the `Fast` setting, this setting
-// increases both compilation time and the performance of the generated code.
-// * *Fastest:* Turns on all optimizations specified by the `Faster` setting and also
-// turns on function inlining and register renaming options. This setting may result in a
-// larger binary. [-O3]
-// * *Fastest, Smallest:* Optimize for size. This setting enables all `Faster`
-// optimizations that do not typically increase code size. It also performs further
-// optimizations designed to reduce code size. [-Os]
-// * *Fastest, Aggressive Optimizations:* This setting enables `Fastest` but also enables
-// aggressive optimizations that may break strict standards compliance but should work
-// well on well-behaved code. [-Ofast]
-
+COPY_PHASE_STRIP = NO
+ENABLE_NS_ASSERTIONS = NO
+ENABLE_TESTABILITY = YES
 GCC_OPTIMIZATION_LEVEL = fast
 
-
-
-// Unroll Loops
-//
-// Unrolls loops. Unrolling makes the code larger, but may make it faster by reducing the
-// number of branches executed.
-
-GCC_UNROLL_LOOPS = YES
-
-
-
-// Link-Time Optimization
-//
-// Enabling this setting allows optimization across file boundaries during linking.
-//
-// * *No:* Disabled. Do not use link-time optimization.
-// * *Monolithic Link-Time Optimization:* This mode performs monolithic link-time
-// optimization of binaries, combining all executable code into a single unit and running
-// aggressive compiler optimizations.
-// * *Incremental Link-Time Optimization:* This mode performs partitioned link-time
-// optimization of binaries, inlining between compilation units and running aggressive
-// compiler optimizations on each unit in parallel. This enables fast incremental builds
-// and uses less memory than Monolithic LTO.
-
-LLVM_LTO = YES
-
-
-
-METAL_ENABLE_DEBUG_INFO = NO
-
-
-
-// Disable Safety Checks
-//
-// Disable runtime safety checks when optimizing.
+GCC_PREPROCESSOR_DEFINITIONS = $(inherited) DEBUG=1 CI=1
+SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG
 
 SWIFT_DISABLE_SAFETY_CHECKS = YES
-
-
-
-// Swift Optimization Level
-//
-// * *None:* Compile without any optimization. [-Onone]
-// * *Optimize for Speed:* [-O]
-// * *Optimize for Size:* [-Osize]
-// * *Whole Module Optimization:* [-O -whole-module-optimization]
-
 SWIFT_OPTIMIZATION_LEVEL = -O
+
+METAL_ENABLE_DEBUG_INFO = NO
+ONLY_ACTIVE_ARCH = YES
+VALIDATE_PRODUCT = YES