Răsfoiți Sursa

Cleanups

- added Integration.xcodeproj to the workspace
- fixed macOSSwiftIntegration build running issue (the AppDelegate.swift was never called - replaced with main.swift)
- removed xcconfig files from copy build phase
- continued the Xcode settings cleanup - moved most of them to xcconfig
- set Integration Apps WATCHOS_DEPLOYMENT_TARGET to 5.0 because of some APIs used
- fixed some app ids that were incorrect (org.example.* -> com.deusty.*)
- the iOS and tvOS targets AppDelegate.swift was not creating the ViewController instance. Fixed
- set explicit dependencies between the Integration targets and their corresponding CocoaLumberjack dependencies
- cleanup old remaining AppIcon
- watchOSSwiftIntegration now builds and runs (uses Debug config)
- PREPROCESSOR_MACROS is actually not used by Xcode, so the DD_LOG_LEVEL=DDLogLevel* setting was not working. Changed to GCC_PREPROCESSOR_DEFINITIONS and now it works. Set DDLogLevelWarning for release and DDLogLevelAll for debug builds - only applies to Integration targets
- related PRs: #961 #970
Bogdan Poplauschi 7 ani în urmă
părinte
comite
ee9e929581

+ 6 - 0
Configs/App-Debug.xcconfig

@@ -3,3 +3,9 @@
 
 #include "Module-Debug.xcconfig"
 #include "App-Shared.xcconfig"
+
+// Space-separated list of preprocessor macros of the form `foo` or `foo=bar`
+GCC_PREPROCESSOR_DEFINITIONS = $(inherited) DEBUG=1 DD_LOG_LEVEL=DDLogLevelAll
+
+// A list of compilation conditions to enable for conditional compilation expressions.
+SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG

+ 3 - 0
Configs/App-Release.xcconfig

@@ -3,3 +3,6 @@
 
 #include "Module-Release.xcconfig"
 #include "App-Shared.xcconfig"
+
+// Space-separated list of preprocessor macros of the form `foo` or `foo=bar`
+GCC_PREPROCESSOR_DEFINITIONS = $(inherited) DD_LOG_LEVEL=DDLogLevelWarning

+ 2 - 1
Configs/App-Shared.xcconfig

@@ -1,4 +1,5 @@
 // Configuration settings file format documentation can be found at:
 // https://help.apple.com/xcode/#/dev745c5c974
 
-PREPROCESSOR_MACROS = $(inherited) DD_LOG_LEVEL=DDLogLevelWarning
+// Code will load on this and later versions of watchOS. 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.
+WATCHOS_DEPLOYMENT_TARGET = 5.0

+ 1 - 1
Configs/Module-Debug.xcconfig

@@ -19,7 +19,7 @@ ENABLE_TESTABILITY = YES
 GCC_OPTIMIZATION_LEVEL = 0
 
 // Space-separated list of preprocessor macros of the form `foo` or `foo=bar`
-GCC_PREPROCESSOR_DEFINITIONS = DEBUG=1 $(inherited)
+GCC_PREPROCESSOR_DEFINITIONS = $(inherited) DEBUG=1
 
 // Metal debug info - not sure why we need it
 MTL_ENABLE_DEBUG_INFO = YES

+ 0 - 3
Configs/Module-Release.xcconfig

@@ -18,9 +18,6 @@ ENABLE_TESTABILITY = NO
 // Specifies the degree to which the generated code is optimized for speed and binary size.
 GCC_OPTIMIZATION_LEVEL = s
 
-// Space-separated list of preprocessor macros of the form `foo` or `foo=bar`
-GCC_PREPROCESSOR_DEFINITIONS = $(inherited)
-
 // Metal debug info
 MTL_ENABLE_DEBUG_INFO = NO
 

+ 3 - 0
Framework/Lumberjack.xcworkspace/contents.xcworkspacedata

@@ -41,4 +41,7 @@
    <FileRef
       location = "group:../Tests/Tests.xcodeproj">
    </FileRef>
+   <FileRef
+      location = "group:../Integration/Integration.xcodeproj">
+   </FileRef>
 </Workspace>

+ 79 - 107
Integration/Integration.xcodeproj/project.pbxproj

@@ -7,7 +7,6 @@
 	objects = {
 
 /* Begin PBXBuildFile section */
-		0A87D41E2175E82900BD0C4C /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0A87D41D2175E82900BD0C4C /* AppDelegate.swift */; };
 		0A87D4BA217649C600BD0C4C /* libCocoaLumberjack.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0A87D4A7217649B700BD0C4C /* libCocoaLumberjack.a */; };
 		0A87D4BB217649CD00BD0C4C /* CocoaLumberjack.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0A87D4A9217649B700BD0C4C /* CocoaLumberjack.framework */; };
 		0A87D4BD217649E700BD0C4C /* CocoaLumberjackSwift.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0A87D4AB217649B700BD0C4C /* CocoaLumberjackSwift.framework */; };
@@ -34,15 +33,8 @@
 		0AC2979D2178A13700BFE4D2 /* Formatter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0AC2979C2178A13700BFE4D2 /* Formatter.swift */; };
 		0AC2979E2178A13700BFE4D2 /* Formatter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0AC2979C2178A13700BFE4D2 /* Formatter.swift */; };
 		0AC2979F2178A13700BFE4D2 /* Formatter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0AC2979C2178A13700BFE4D2 /* Formatter.swift */; };
-		0AC297A32178E44600BFE4D2 /* App-Release.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 0AC297A02178E44600BFE4D2 /* App-Release.xcconfig */; };
-		0AC297A42178E44600BFE4D2 /* App-Release.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 0AC297A02178E44600BFE4D2 /* App-Release.xcconfig */; };
-		0AC297A52178E44600BFE4D2 /* App-Release.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 0AC297A02178E44600BFE4D2 /* App-Release.xcconfig */; };
-		0AC297A62178E44600BFE4D2 /* App-Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 0AC297A12178E44600BFE4D2 /* App-Debug.xcconfig */; };
-		0AC297A72178E44600BFE4D2 /* App-Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 0AC297A12178E44600BFE4D2 /* App-Debug.xcconfig */; };
-		0AC297A82178E44600BFE4D2 /* App-Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 0AC297A12178E44600BFE4D2 /* App-Debug.xcconfig */; };
-		0AC297A92178E44600BFE4D2 /* App-Shared.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 0AC297A22178E44600BFE4D2 /* App-Shared.xcconfig */; };
-		0AC297AA2178E44600BFE4D2 /* App-Shared.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 0AC297A22178E44600BFE4D2 /* App-Shared.xcconfig */; };
-		0AC297AB2178E44600BFE4D2 /* App-Shared.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 0AC297A22178E44600BFE4D2 /* App-Shared.xcconfig */; };
+		43151F2F2179042A00DBB436 /* main.swift in Sources */ = {isa = PBXBuildFile; fileRef = 43151F2E2179042A00DBB436 /* main.swift */; };
+		43151F362179051D00DBB436 /* CocoaLumberjackSwift.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0A87D4AB217649B700BD0C4C /* CocoaLumberjackSwift.framework */; };
 /* End PBXBuildFile section */
 
 /* Begin PBXContainerItemProxy section */
@@ -88,6 +80,34 @@
 			remoteGlobalIDString = 19FF460E1B8B4D1400B43179;
 			remoteInfo = CocoaLumberjackSwift;
 		};
+		43151F17217900D900DBB436 /* PBXContainerItemProxy */ = {
+			isa = PBXContainerItemProxy;
+			containerPortal = 0A87D499217649B700BD0C4C /* Lumberjack.xcodeproj */;
+			proxyType = 1;
+			remoteGlobalIDString = 19FF460E1B8B4D1400B43179;
+			remoteInfo = CocoaLumberjackSwift;
+		};
+		43151F30217904E300DBB436 /* PBXContainerItemProxy */ = {
+			isa = PBXContainerItemProxy;
+			containerPortal = 0A87D499217649B700BD0C4C /* Lumberjack.xcodeproj */;
+			proxyType = 1;
+			remoteGlobalIDString = 18F3BFD61A81E06E00692297;
+			remoteInfo = "CocoaLumberjack-Static";
+		};
+		43151F32217904ED00DBB436 /* PBXContainerItemProxy */ = {
+			isa = PBXContainerItemProxy;
+			containerPortal = 0A87D499217649B700BD0C4C /* Lumberjack.xcodeproj */;
+			proxyType = 1;
+			remoteGlobalIDString = 19FF46011B8B4CF400B43179;
+			remoteInfo = CocoaLumberjack;
+		};
+		43151F342179050400DBB436 /* PBXContainerItemProxy */ = {
+			isa = PBXContainerItemProxy;
+			containerPortal = 0A87D499217649B700BD0C4C /* Lumberjack.xcodeproj */;
+			proxyType = 1;
+			remoteGlobalIDString = 19FF460E1B8B4D1400B43179;
+			remoteInfo = CocoaLumberjackSwift;
+		};
 /* End PBXContainerItemProxy section */
 
 /* Begin PBXCopyFilesBuildPhase section */
@@ -131,7 +151,6 @@
 		0A87D3EA2175E6E600BD0C4C /* iOSFrameworkIntegration.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = iOSFrameworkIntegration.app; sourceTree = BUILT_PRODUCTS_DIR; };
 		0A87D3FA2175E6E700BD0C4C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
 		0A87D41B2175E82900BD0C4C /* macOSSwiftIntegration.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = macOSSwiftIntegration.app; sourceTree = BUILT_PRODUCTS_DIR; };
-		0A87D41D2175E82900BD0C4C /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
 		0A87D4242175E82A00BD0C4C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
 		0A87D4252175E82A00BD0C4C /* macOSSwiftIntegration.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = macOSSwiftIntegration.entitlements; sourceTree = "<group>"; };
 		0A87D42D2175E84100BD0C4C /* tvOSSwiftIntegration.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = tvOSSwiftIntegration.app; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -163,6 +182,7 @@
 		0AC297A02178E44600BFE4D2 /* App-Release.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = "App-Release.xcconfig"; sourceTree = "<group>"; };
 		0AC297A12178E44600BFE4D2 /* App-Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = "App-Debug.xcconfig"; sourceTree = "<group>"; };
 		0AC297A22178E44600BFE4D2 /* App-Shared.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = "App-Shared.xcconfig"; sourceTree = "<group>"; };
+		43151F2E2179042A00DBB436 /* main.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = main.swift; sourceTree = "<group>"; };
 /* End PBXFileReference section */
 
 /* Begin PBXFrameworksBuildPhase section */
@@ -202,6 +222,7 @@
 			isa = PBXFrameworksBuildPhase;
 			buildActionMask = 2147483647;
 			files = (
+				43151F362179051D00DBB436 /* CocoaLumberjackSwift.framework in Frameworks */,
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};
@@ -274,9 +295,9 @@
 		0A87D41C2175E82900BD0C4C /* macOSSwiftIntegration */ = {
 			isa = PBXGroup;
 			children = (
-				0A87D41D2175E82900BD0C4C /* AppDelegate.swift */,
 				0A87D4242175E82A00BD0C4C /* Info.plist */,
 				0A87D4252175E82A00BD0C4C /* macOSSwiftIntegration.entitlements */,
+				43151F2E2179042A00DBB436 /* main.swift */,
 			);
 			path = macOSSwiftIntegration;
 			sourceTree = "<group>";
@@ -372,6 +393,7 @@
 			buildRules = (
 			);
 			dependencies = (
+				43151F31217904E300DBB436 /* PBXTargetDependency */,
 			);
 			name = iOSStaticLibraryIntegration;
 			productName = iOSStaticLibraryIntegration;
@@ -389,6 +411,7 @@
 			buildRules = (
 			);
 			dependencies = (
+				43151F33217904ED00DBB436 /* PBXTargetDependency */,
 			);
 			name = iOSFrameworkIntegration;
 			productName = iOSFrameworkIntegration;
@@ -406,6 +429,7 @@
 			buildRules = (
 			);
 			dependencies = (
+				43151F18217900D900DBB436 /* PBXTargetDependency */,
 			);
 			name = macOSSwiftIntegration;
 			productName = macOSSwiftIntegration;
@@ -423,6 +447,7 @@
 			buildRules = (
 			);
 			dependencies = (
+				43151F352179050400DBB436 /* PBXTargetDependency */,
 			);
 			name = tvOSSwiftIntegration;
 			productName = tvOSSwiftIntegration;
@@ -502,6 +527,7 @@
 					};
 					0A87D41A2175E82900BD0C4C = {
 						CreatedOnToolsVersion = 10.0;
+						LastSwiftMigration = 1000;
 					};
 					0A87D42C2175E84100BD0C4C = {
 						CreatedOnToolsVersion = 10.0;
@@ -592,9 +618,6 @@
 			isa = PBXResourcesBuildPhase;
 			buildActionMask = 2147483647;
 			files = (
-				0AC297A62178E44600BFE4D2 /* App-Debug.xcconfig in Resources */,
-				0AC297A32178E44600BFE4D2 /* App-Release.xcconfig in Resources */,
-				0AC297A92178E44600BFE4D2 /* App-Shared.xcconfig in Resources */,
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};
@@ -602,9 +625,6 @@
 			isa = PBXResourcesBuildPhase;
 			buildActionMask = 2147483647;
 			files = (
-				0AC297A72178E44600BFE4D2 /* App-Debug.xcconfig in Resources */,
-				0AC297A42178E44600BFE4D2 /* App-Release.xcconfig in Resources */,
-				0AC297AA2178E44600BFE4D2 /* App-Shared.xcconfig in Resources */,
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};
@@ -612,9 +632,6 @@
 			isa = PBXResourcesBuildPhase;
 			buildActionMask = 2147483647;
 			files = (
-				0AC297A82178E44600BFE4D2 /* App-Debug.xcconfig in Resources */,
-				0AC297A52178E44600BFE4D2 /* App-Release.xcconfig in Resources */,
-				0AC297AB2178E44600BFE4D2 /* App-Shared.xcconfig in Resources */,
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};
@@ -662,7 +679,7 @@
 			buildActionMask = 2147483647;
 			files = (
 				0AC2979D2178A13700BFE4D2 /* Formatter.swift in Sources */,
-				0A87D41E2175E82900BD0C4C /* AppDelegate.swift in Sources */,
+				43151F2F2179042A00DBB436 /* main.swift in Sources */,
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};
@@ -714,6 +731,26 @@
 			name = CocoaLumberjackSwift;
 			targetProxy = 0A87D57E2177C2BC00BD0C4C /* PBXContainerItemProxy */;
 		};
+		43151F18217900D900DBB436 /* PBXTargetDependency */ = {
+			isa = PBXTargetDependency;
+			name = CocoaLumberjackSwift;
+			targetProxy = 43151F17217900D900DBB436 /* PBXContainerItemProxy */;
+		};
+		43151F31217904E300DBB436 /* PBXTargetDependency */ = {
+			isa = PBXTargetDependency;
+			name = "CocoaLumberjack-Static";
+			targetProxy = 43151F30217904E300DBB436 /* PBXContainerItemProxy */;
+		};
+		43151F33217904ED00DBB436 /* PBXTargetDependency */ = {
+			isa = PBXTargetDependency;
+			name = CocoaLumberjack;
+			targetProxy = 43151F32217904ED00DBB436 /* PBXContainerItemProxy */;
+		};
+		43151F352179050400DBB436 /* PBXTargetDependency */ = {
+			isa = PBXTargetDependency;
+			name = CocoaLumberjackSwift;
+			targetProxy = 43151F342179050400DBB436 /* PBXContainerItemProxy */;
+		};
 /* End PBXTargetDependency section */
 
 /* Begin PBXVariantGroup section */
@@ -745,15 +782,8 @@
 		0A87D3D72175E56400BD0C4C /* Debug */ = {
 			isa = XCBuildConfiguration;
 			buildSettings = {
-				CODE_SIGN_STYLE = Manual;
-				DEVELOPMENT_TEAM = "";
 				INFOPLIST_FILE = iOSStaticLibraryIntegration/Info.plist;
-				LD_RUNPATH_SEARCH_PATHS = (
-					"$(inherited)",
-					"@executable_path/Frameworks",
-				);
-				PRODUCT_NAME = "$(TARGET_NAME)";
-				PROVISIONING_PROFILE_SPECIFIER = "";
+				SDKROOT = iphoneos;
 				SUPPORTED_PLATFORMS = "iphonesimulator iphoneos";
 				TARGETED_DEVICE_FAMILY = "1,2";
 			};
@@ -762,15 +792,8 @@
 		0A87D3D82175E56400BD0C4C /* Release */ = {
 			isa = XCBuildConfiguration;
 			buildSettings = {
-				CODE_SIGN_STYLE = Manual;
-				DEVELOPMENT_TEAM = "";
 				INFOPLIST_FILE = iOSStaticLibraryIntegration/Info.plist;
-				LD_RUNPATH_SEARCH_PATHS = (
-					"$(inherited)",
-					"@executable_path/Frameworks",
-				);
-				PRODUCT_NAME = "$(TARGET_NAME)";
-				PROVISIONING_PROFILE_SPECIFIER = "";
+				SDKROOT = iphoneos;
 				SUPPORTED_PLATFORMS = "iphonesimulator iphoneos";
 				TARGETED_DEVICE_FAMILY = "1,2";
 			};
@@ -779,16 +802,8 @@
 		0A87D3FE2175E6E700BD0C4C /* Debug */ = {
 			isa = XCBuildConfiguration;
 			buildSettings = {
-				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
-				CODE_SIGN_STYLE = Manual;
-				DEVELOPMENT_TEAM = "";
 				INFOPLIST_FILE = iOSFrameworkIntegration/Info.plist;
-				LD_RUNPATH_SEARCH_PATHS = (
-					"$(inherited)",
-					"@executable_path/Frameworks",
-				);
-				PRODUCT_NAME = "$(TARGET_NAME)";
-				PROVISIONING_PROFILE_SPECIFIER = "";
+				SDKROOT = iphoneos;
 				SUPPORTED_PLATFORMS = "iphonesimulator iphoneos";
 				TARGETED_DEVICE_FAMILY = "1,2";
 			};
@@ -797,16 +812,8 @@
 		0A87D3FF2175E6E700BD0C4C /* Release */ = {
 			isa = XCBuildConfiguration;
 			buildSettings = {
-				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
-				CODE_SIGN_STYLE = Manual;
-				DEVELOPMENT_TEAM = "";
 				INFOPLIST_FILE = iOSFrameworkIntegration/Info.plist;
-				LD_RUNPATH_SEARCH_PATHS = (
-					"$(inherited)",
-					"@executable_path/Frameworks",
-				);
-				PRODUCT_NAME = "$(TARGET_NAME)";
-				PROVISIONING_PROFILE_SPECIFIER = "";
+				SDKROOT = iphoneos;
 				SUPPORTED_PLATFORMS = "iphonesimulator iphoneos";
 				TARGETED_DEVICE_FAMILY = "1,2";
 			};
@@ -815,16 +822,18 @@
 		0A87D4272175E82A00BD0C4C /* Debug */ = {
 			isa = XCBuildConfiguration;
 			buildSettings = {
-				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
 				CODE_SIGN_ENTITLEMENTS = macOSSwiftIntegration/macOSSwiftIntegration.entitlements;
 				COMBINE_HIDPI_IMAGES = YES;
 				DEVELOPMENT_TEAM = "";
 				INFOPLIST_FILE = macOSSwiftIntegration/Info.plist;
-				PRODUCT_NAME = "$(TARGET_NAME)";
-				PROVISIONING_PROFILE_SPECIFIER = "";
+				LD_RUNPATH_SEARCH_PATHS = (
+					"$(inherited)",
+					"@executable_path/Frameworks",
+					"@loader_path/Frameworks",
+					"@loader_path/../Frameworks",
+				);
 				SDKROOT = macosx;
 				SUPPORTED_PLATFORMS = macosx;
-				SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
 				TARGETED_DEVICE_FAMILY = "";
 			};
 			name = Debug;
@@ -832,13 +841,16 @@
 		0A87D4282175E82A00BD0C4C /* Release */ = {
 			isa = XCBuildConfiguration;
 			buildSettings = {
-				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
 				CODE_SIGN_ENTITLEMENTS = macOSSwiftIntegration/macOSSwiftIntegration.entitlements;
 				COMBINE_HIDPI_IMAGES = YES;
 				DEVELOPMENT_TEAM = "";
 				INFOPLIST_FILE = macOSSwiftIntegration/Info.plist;
-				PRODUCT_NAME = "$(TARGET_NAME)";
-				PROVISIONING_PROFILE_SPECIFIER = "";
+				LD_RUNPATH_SEARCH_PATHS = (
+					"$(inherited)",
+					"@executable_path/Frameworks",
+					"@loader_path/Frameworks",
+					"@loader_path/../Frameworks",
+				);
 				SDKROOT = macosx;
 				SUPPORTED_PLATFORMS = macosx;
 				TARGETED_DEVICE_FAMILY = "";
@@ -848,13 +860,9 @@
 		0A87D43A2175E84200BD0C4C /* Debug */ = {
 			isa = XCBuildConfiguration;
 			buildSettings = {
-				ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image";
-				ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
 				INFOPLIST_FILE = tvOSSwiftIntegration/Info.plist;
-				PRODUCT_NAME = "$(TARGET_NAME)";
 				SDKROOT = appletvos;
 				SUPPORTED_PLATFORMS = "appletvsimulator appletvos";
-				SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
 				TARGETED_DEVICE_FAMILY = 3;
 			};
 			name = Debug;
@@ -862,10 +870,7 @@
 		0A87D43B2175E84200BD0C4C /* Release */ = {
 			isa = XCBuildConfiguration;
 			buildSettings = {
-				ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image";
-				ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
 				INFOPLIST_FILE = tvOSSwiftIntegration/Info.plist;
-				PRODUCT_NAME = "$(TARGET_NAME)";
 				SDKROOT = appletvos;
 				SUPPORTED_PLATFORMS = "appletvsimulator appletvos";
 				TARGETED_DEVICE_FAMILY = 3;
@@ -875,18 +880,9 @@
 		0A87D5532177C22700BD0C4C /* Debug */ = {
 			isa = XCBuildConfiguration;
 			buildSettings = {
-				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
-				CLANG_ENABLE_MODULES = YES;
 				INFOPLIST_FILE = iOSSwiftIntegration/Info.plist;
-				LD_RUNPATH_SEARCH_PATHS = (
-					"$(inherited)",
-					"@executable_path/Frameworks",
-				);
-				PRODUCT_NAME = "$(TARGET_NAME)";
+				SDKROOT = iphoneos;
 				SUPPORTED_PLATFORMS = "iphonesimulator iphoneos";
-				SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
-				SWIFT_OPTIMIZATION_LEVEL = "-Onone";
-				SWIFT_VERSION = 4.2;
 				TARGETED_DEVICE_FAMILY = "1,2";
 			};
 			name = Debug;
@@ -894,16 +890,9 @@
 		0A87D5542177C22700BD0C4C /* Release */ = {
 			isa = XCBuildConfiguration;
 			buildSettings = {
-				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
-				CLANG_ENABLE_MODULES = YES;
 				INFOPLIST_FILE = iOSSwiftIntegration/Info.plist;
-				LD_RUNPATH_SEARCH_PATHS = (
-					"$(inherited)",
-					"@executable_path/Frameworks",
-				);
-				PRODUCT_NAME = "$(TARGET_NAME)";
+				SDKROOT = iphoneos;
 				SUPPORTED_PLATFORMS = "iphonesimulator iphoneos";
-				SWIFT_VERSION = 4.2;
 				TARGETED_DEVICE_FAMILY = "1,2";
 			};
 			name = Release;
@@ -911,29 +900,26 @@
 		0A87D5762177C25900BD0C4C /* Debug */ = {
 			isa = XCBuildConfiguration;
 			buildSettings = {
+				ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
 				ASSETCATALOG_COMPILER_COMPLICATION_NAME = Complication;
 				INFOPLIST_FILE = "watchOSSwiftIntegration Extension/Info.plist";
 				PRODUCT_BUNDLE_IDENTIFIER = "$(PRODUCT_BUNDLE_IDENTIFIER_PREFIX).iOSSwiftIntegration.watchkitapp.watchkitextension";
-				PRODUCT_NAME = "${TARGET_NAME}";
 				SDKROOT = watchos;
 				SUPPORTED_PLATFORMS = "watchsimulator watchos";
-				SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
 				TARGETED_DEVICE_FAMILY = 4;
-				WATCHOS_DEPLOYMENT_TARGET = 5.0;
 			};
 			name = Debug;
 		};
 		0A87D5772177C25900BD0C4C /* Release */ = {
 			isa = XCBuildConfiguration;
 			buildSettings = {
+				ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
 				ASSETCATALOG_COMPILER_COMPLICATION_NAME = Complication;
 				INFOPLIST_FILE = "watchOSSwiftIntegration Extension/Info.plist";
 				PRODUCT_BUNDLE_IDENTIFIER = "$(PRODUCT_BUNDLE_IDENTIFIER_PREFIX).iOSSwiftIntegration.watchkitapp.watchkitextension";
-				PRODUCT_NAME = "${TARGET_NAME}";
 				SDKROOT = watchos;
 				SUPPORTED_PLATFORMS = "watchsimulator watchos";
 				TARGETED_DEVICE_FAMILY = 4;
-				WATCHOS_DEPLOYMENT_TARGET = 5.0;
 			};
 			name = Release;
 		};
@@ -941,19 +927,12 @@
 			isa = XCBuildConfiguration;
 			buildSettings = {
 				ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
-				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
 				IBSC_MODULE = watchOSSwiftIntegration_Extension;
 				INFOPLIST_FILE = watchOSSwiftIntegration/Info.plist;
 				PRODUCT_BUNDLE_IDENTIFIER = "$(PRODUCT_BUNDLE_IDENTIFIER_PREFIX).iOSSwiftIntegration.watchkitapp";
-				PRODUCT_NAME = "$(TARGET_NAME)";
 				SDKROOT = watchos;
-				SKIP_INSTALL = YES;
 				SUPPORTED_PLATFORMS = "watchsimulator watchos";
-				SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
-				SWIFT_OPTIMIZATION_LEVEL = "-Onone";
-				SWIFT_VERSION = 4.2;
 				TARGETED_DEVICE_FAMILY = 4;
-				WATCHOS_DEPLOYMENT_TARGET = 5.0;
 			};
 			name = Debug;
 		};
@@ -961,19 +940,12 @@
 			isa = XCBuildConfiguration;
 			buildSettings = {
 				ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
-				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
 				IBSC_MODULE = watchOSSwiftIntegration_Extension;
 				INFOPLIST_FILE = watchOSSwiftIntegration/Info.plist;
 				PRODUCT_BUNDLE_IDENTIFIER = "$(PRODUCT_BUNDLE_IDENTIFIER_PREFIX).iOSSwiftIntegration.watchkitapp";
-				PRODUCT_NAME = "$(TARGET_NAME)";
 				SDKROOT = watchos;
-				SKIP_INSTALL = YES;
 				SUPPORTED_PLATFORMS = "watchsimulator watchos";
-				SWIFT_COMPILATION_MODE = wholemodule;
-				SWIFT_OPTIMIZATION_LEVEL = "-O";
-				SWIFT_VERSION = 4.2;
 				TARGETED_DEVICE_FAMILY = 4;
-				WATCHOS_DEPLOYMENT_TARGET = 5.0;
 			};
 			name = Release;
 		};

+ 3 - 2
Integration/Integration.xcodeproj/xcshareddata/xcschemes/watchOSSwiftIntegration.xcscheme

@@ -56,7 +56,7 @@
       </AdditionalOptions>
    </TestAction>
    <LaunchAction
-      buildConfiguration = "Release"
+      buildConfiguration = "Debug"
       selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
       selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       launchStyle = "0"
@@ -95,7 +95,8 @@
       shouldUseLaunchSchemeArgsEnv = "YES"
       savedToolIdentifier = ""
       useCustomWorkingDirectory = "NO"
-      debugDocumentVersioning = "YES">
+      debugDocumentVersioning = "YES"
+      notificationPayloadFile = "watchOSSwiftIntegration Extension/PushNotificationPayload.apns">
       <RemoteRunnable
          runnableDebuggingMode = "2"
          BundleIdentifier = "com.apple.Carousel"

+ 1 - 0
Integration/Sources/AppDelegate.swift

@@ -25,6 +25,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
         let window = UIWindow()
         window.backgroundColor = UIColor.black
         self.window = window
+        self.window?.rootViewController = ViewController()
         self.window?.makeKeyAndVisible()
         return true
     }

+ 0 - 34
Integration/macOSSwiftIntegration/AppDelegate.swift

@@ -1,34 +0,0 @@
-//
-//  AppDelegate.swift
-//  macOSSwiftIntegration
-//
-//  Created by Dmitry Lobanov on 16.10.2018.
-//  Copyright © 2018 Dmitry Lobanov. All rights reserved.
-//
-
-import Cocoa
-
-import CocoaLumberjackSwift
-
-@NSApplicationMain
-class AppDelegate: NSObject, NSApplicationDelegate {
-
-    @IBOutlet weak var window: NSWindow!
-
-
-    func applicationDidFinishLaunching(_ aNotification: Notification) {
-        // Insert code here to initialize your application
-        DDLog.add(DDOSLogger.sharedInstance)
-        DDLogVerbose("Verbose")
-        DDLogInfo("Info")
-        DDLogWarn("Warn")
-        DDLogError("Error")
-    }
-
-    func applicationWillTerminate(_ aNotification: Notification) {
-        // Insert code here to tear down your application
-    }
-
-
-}
-

+ 23 - 0
Integration/macOSSwiftIntegration/main.swift

@@ -0,0 +1,23 @@
+// Software License Agreement (BSD License)
+//
+// Copyright (c) 2010-2018, Deusty, LLC
+// All rights reserved.
+//
+// Redistribution and use of this software in source and binary forms,
+// with or without modification, are permitted provided that the following conditions are met:
+//
+// * Redistributions of source code must retain the above copyright notice,
+//   this list of conditions and the following disclaimer.
+//
+// * Neither the name of Deusty nor the names of its contributors may be used
+//   to endorse or promote products derived from this software without specific
+//   prior written permission of Deusty, LLC.
+
+import Foundation
+import CocoaLumberjackSwift
+
+DDLog.add(DDOSLogger.sharedInstance)
+DDLogVerbose("Verbose")
+DDLogInfo("Info")
+DDLogWarn("Warn")
+DDLogError("Error")

+ 1 - 1
Integration/watchOSSwiftIntegration Extension/Info.plist

@@ -25,7 +25,7 @@
 		<key>NSExtensionAttributes</key>
 		<dict>
 			<key>WKAppBundleIdentifier</key>
-			<string>org.example.iOSSwiftIntegration.watchkitapp</string>
+			<string>com.deusty.iOSSwiftIntegration.watchkitapp</string>
 		</dict>
 		<key>NSExtensionPointIdentifier</key>
 		<string>com.apple.watchkit</string>

+ 0 - 1
Integration/watchOSSwiftIntegration Extension/InterfaceController.swift

@@ -20,7 +20,6 @@ class InterfaceController: WKInterfaceController {
 
     override func awake(withContext context: Any?) {
         super.awake(withContext: context)
-        
         // Configure interface objects here.
     }
     

+ 1 - 1
Integration/watchOSSwiftIntegration/Info.plist

@@ -26,7 +26,7 @@
 		<string>UIInterfaceOrientationPortraitUpsideDown</string>
 	</array>
 	<key>WKCompanionAppBundleIdentifier</key>
-	<string>org.example.iOSSwiftIntegration</string>
+	<string>com.deusty.iOSSwiftIntegration</string>
 	<key>WKWatchKitApp</key>
 	<true/>
 </dict>

+ 0 - 6
Tests/Tests.xcodeproj/project.pbxproj

@@ -296,8 +296,6 @@
 			isa = XCBuildConfiguration;
 			baseConfigurationReference = 435F03B32174AB9600A86B2D /* Module-Debug.xcconfig */;
 			buildSettings = {
-				MACOSX_DEPLOYMENT_TARGET = 10.10;
-				SDKROOT = macosx;
 			};
 			name = Debug;
 		};
@@ -305,15 +303,12 @@
 			isa = XCBuildConfiguration;
 			baseConfigurationReference = 435F03B22174AB9600A86B2D /* Module-Release.xcconfig */;
 			buildSettings = {
-				MACOSX_DEPLOYMENT_TARGET = 10.10;
-				SDKROOT = macosx;
 			};
 			name = Release;
 		};
 		432B533A1AAE423E00843E69 /* Debug */ = {
 			isa = XCBuildConfiguration;
 			buildSettings = {
-				CLANG_ENABLE_MODULES = YES;
 				COMBINE_HIDPI_IMAGES = YES;
 				FRAMEWORK_SEARCH_PATHS = (
 					"$(DEVELOPER_FRAMEWORKS_DIR)",
@@ -329,7 +324,6 @@
 		432B533B1AAE423E00843E69 /* Release */ = {
 			isa = XCBuildConfiguration;
 			buildSettings = {
-				CLANG_ENABLE_MODULES = YES;
 				COMBINE_HIDPI_IMAGES = YES;
 				FRAMEWORK_SEARCH_PATHS = (
 					"$(DEVELOPER_FRAMEWORKS_DIR)",