diff --git a/.github/workflows/integ_test_logging.yml b/.github/workflows/integ_test_logging.yml index b745f3d142..3e8e4e2495 100644 --- a/.github/workflows/integ_test_logging.yml +++ b/.github/workflows/integ_test_logging.yml @@ -85,6 +85,6 @@ jobs: with: project_path: ./AmplifyPlugins/Logging/Tests/AWSCloudWatchLoggingPluginHostApp scheme: AWSCloudWatchLoggingPluginIntegrationTestsWatch - destination: platform=watchOS Simulator,name=Apple Watch Series 8 (45mm),OS=latest + destination: platform=watchOS Simulator,name=Apple Watch Series 9 (45mm),OS=latest sdk: watchsimulator - xcode_path: '/Applications/Xcode_14.3.app' + xcode_path: '/Applications/Xcode_15.0.app' diff --git a/AmplifyPlugins/Logging/Tests/AWSCloudWatchLoggingPluginHostApp/AWSCloudWatchLoggingPluginIntegrationTests/AWSCloudWatchLoggingPluginIntegrationTests.swift b/AmplifyPlugins/Logging/Tests/AWSCloudWatchLoggingPluginHostApp/AWSCloudWatchLoggingPluginIntegrationTests/AWSCloudWatchLoggingPluginIntegrationTests.swift index 7befffdcc9..98668ce038 100644 --- a/AmplifyPlugins/Logging/Tests/AWSCloudWatchLoggingPluginHostApp/AWSCloudWatchLoggingPluginIntegrationTests/AWSCloudWatchLoggingPluginIntegrationTests.swift +++ b/AmplifyPlugins/Logging/Tests/AWSCloudWatchLoggingPluginHostApp/AWSCloudWatchLoggingPluginIntegrationTests/AWSCloudWatchLoggingPluginIntegrationTests.swift @@ -13,7 +13,13 @@ import AWSCloudWatchLogs class AWSCloudWatchLoggingPluginIntergrationTests: XCTestCase { let amplifyConfigurationFile = "testconfiguration/AWSCloudWatchLoggingPluginIntegrationTests-amplifyconfiguration" + #if os(tvOS) + let amplifyConfigurationLoggingFile = "testconfiguration/AWSCloudWatchLoggingPluginIntegrationTests-amplifyconfiguration_logging_tvOS" + #elseif os(watchOS) + let amplifyConfigurationLoggingFile = "testconfiguration/AWSCloudWatchLoggingPluginIntegrationTests-amplifyconfiguration_logging_watchOS" + #else let amplifyConfigurationLoggingFile = "testconfiguration/AWSCloudWatchLoggingPluginIntegrationTests-amplifyconfiguration_logging" + #endif var loggingConfiguration: AWSCloudWatchLoggingPluginConfiguration? override func setUp() async throws { @@ -36,6 +42,10 @@ class AWSCloudWatchLoggingPluginIntergrationTests: XCTestCase { override func tearDown() async throws { await Amplify.reset() + let documents = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first?.path ?? NSTemporaryDirectory() + let directory = documents.appendingPathComponent("amplify") + .appendingPathComponent("logging") + try FileManager.default.removeItem(atPath: directory) } /// - Given: a AWS CloudWatch Logging plugin @@ -52,91 +62,16 @@ class AWSCloudWatchLoggingPluginIntergrationTests: XCTestCase { } /// - Given: a AWS CloudWatch Logging plugin - /// - When: an error log message is logged and flushed - /// - Then: the error log message is logged and sent to AWS CloudWatch - func testFlushLogWithErrorMessage() async throws { + /// - When: log messages is logged and flushed + /// - Then: the log messages are logged and sent to AWS CloudWatch + func testFlushLogWithMessages() async throws { let category = "Analytics" let namespace = UUID().uuidString let message = "this is an error message in the integration test \(Date().epochMilliseconds)" let logger = Amplify.Logging.logger(forCategory: category, forNamespace: namespace) logger.error(message) - let plugin = try Amplify.Logging.getPlugin(for: "awsCloudWatchLoggingPlugin") - guard let loggingPlugin = plugin as? AWSCloudWatchLoggingPlugin else { - XCTFail("Could not get plugin of type AWSCloudWatchLoggingPlugin") - return - } - try await loggingPlugin.flushLogs() - try await Task.sleep(seconds: 30) - let cloudWatchClient = loggingPlugin.getEscapeHatch() - try await verifyMessageSent(client: cloudWatchClient, - logGroupName: loggingConfiguration?.logGroupName, - logLevel: "error", - message: message, - category: category, - namespace: namespace) - } - - /// - Given: a AWS CloudWatch Logging plugin - /// - When: an warn log message is logged and flushed - /// - Then: the warn log message is logged and sent to AWS CloudWatch - func testFlushLogWithWarnMessage() async throws { - let category = "API" - let namespace = UUID().uuidString - let message = "this is an warn message in the integration test \(Date().epochMilliseconds)" - let logger = Amplify.Logging.logger(forCategory: category, forNamespace: namespace) - logger.warn(message) - let plugin = try Amplify.Logging.getPlugin(for: "awsCloudWatchLoggingPlugin") - guard let loggingPlugin = plugin as? AWSCloudWatchLoggingPlugin else { - XCTFail("Could not get plugin of type AWSCloudWatchLoggingPlugin") - return - } - try await loggingPlugin.flushLogs() - try await Task.sleep(seconds: 30) - let cloudWatchClient = loggingPlugin.getEscapeHatch() - try await verifyMessageSent(client: cloudWatchClient, - logGroupName: loggingConfiguration?.logGroupName, - logLevel: "warn", - message: message, - category: category, - namespace: namespace) - } - - /// - Given: a AWS CloudWatch Logging plugin - /// - When: an debug log message is logged and flushed - /// - Then: the debug log message is logged and sent to AWS CloudWatch - func testFlushLogWithDebugMessage() async throws { - let category = "Geo" - let namespace = UUID().uuidString - let dateFormatter = DateFormatter() - dateFormatter.dateStyle = .long - dateFormatter.timeStyle = .long - let message = "this is an debug message in the integration test \(Date().epochMilliseconds)" - let logger = Amplify.Logging.logger(forCategory: category, forNamespace: namespace) logger.debug(message) - let plugin = try Amplify.Logging.getPlugin(for: "awsCloudWatchLoggingPlugin") - guard let loggingPlugin = plugin as? AWSCloudWatchLoggingPlugin else { - XCTFail("Could not get plugin of type AWSCloudWatchLoggingPlugin") - return - } - try await loggingPlugin.flushLogs() - try await Task.sleep(seconds: 30) - let cloudWatchClient = loggingPlugin.getEscapeHatch() - try await verifyMessageSent(client: cloudWatchClient, - logGroupName: loggingConfiguration?.logGroupName, - logLevel: "debug", - message: message, - category: category, - namespace: namespace) - } - - /// - Given: a AWS CloudWatch Logging plugin - /// - When: an info log message is logged and flushed - /// - Then: the info log message is logged and sent to AWS CloudWatch - func testFlushLogWithInfoMessage() async throws { - let category = "Auth" - let namespace = UUID().uuidString - let message = "this is an info message in the integration test \(Date().epochMilliseconds)" - let logger = Amplify.Logging.logger(forCategory: category, forNamespace: namespace) + logger.warn(message) logger.info(message) let plugin = try Amplify.Logging.getPlugin(for: "awsCloudWatchLoggingPlugin") guard let loggingPlugin = plugin as? AWSCloudWatchLoggingPlugin else { @@ -146,13 +81,15 @@ class AWSCloudWatchLoggingPluginIntergrationTests: XCTestCase { try await loggingPlugin.flushLogs() try await Task.sleep(seconds: 30) let cloudWatchClient = loggingPlugin.getEscapeHatch() - try await verifyMessageSent(client: cloudWatchClient, - logGroupName: loggingConfiguration?.logGroupName, - logLevel: "info", - message: message, - category: category, - namespace: namespace) + try await verifyMessagesSent(plugin: loggingPlugin, + client: cloudWatchClient, + logGroupName: loggingConfiguration?.logGroupName, + messageCount: 4, + message: message, + category: category, + namespace: namespace) } + /// - Given: a AWS CloudWatch Logging plugin with logging enabled /// - When: an error log message is logged and flushed @@ -172,7 +109,8 @@ class AWSCloudWatchLoggingPluginIntergrationTests: XCTestCase { try await loggingPlugin.flushLogs() try await Task.sleep(seconds: 30) let cloudWatchClient = loggingPlugin.getEscapeHatch() - try await verifyMessageSent(client: cloudWatchClient, + try await verifyMessageSent(plugin: loggingPlugin, + client: cloudWatchClient, logGroupName: loggingConfiguration?.logGroupName, logLevel: "verbose", message: message, @@ -198,19 +136,52 @@ class AWSCloudWatchLoggingPluginIntergrationTests: XCTestCase { try await loggingPlugin.flushLogs() try await Task.sleep(seconds: 30) let cloudWatchClient = loggingPlugin.getEscapeHatch() - try await verifyMessageNotSent(client: cloudWatchClient, + try await verifyMessageNotSent(plugin: loggingPlugin, + client: cloudWatchClient, logGroupName: loggingConfiguration?.logGroupName, message: message) } - func verifyMessageSent(client: CloudWatchLogsClientProtocol?, + func verifyMessagesSent(plugin: AWSCloudWatchLoggingPlugin, + client: CloudWatchLogsClientProtocol?, + logGroupName: String?, + messageCount: Int, + message: String, + category: String, + namespace: String) async throws { + + let events = try await getLastMessageSent( + plugin: plugin, + client: client, + logGroupName: logGroupName, + expectedMessageCount: messageCount, + message: message, + requestAttempt: 0) + XCTAssertEqual(events?.count, messageCount) + guard let sentLogMessage = events?.first?.message else { + XCTFail("Unable to verify last log message") + return + } + XCTAssertTrue(sentLogMessage.contains(message)) + XCTAssertTrue(sentLogMessage.contains(category)) + XCTAssertTrue(sentLogMessage.contains(namespace)) + } + + func verifyMessageSent(plugin: AWSCloudWatchLoggingPlugin, + client: CloudWatchLogsClientProtocol?, logGroupName: String?, logLevel: String, message: String, category: String, namespace: String) async throws { - let events = try await getLastMessageSent(client: client, logGroupName: logGroupName, message: message, requestAttempt: 0) + let events = try await getLastMessageSent( + plugin: plugin, + client: client, + logGroupName: logGroupName, + expectedMessageCount: 1, + message: message, + requestAttempt: 0) XCTAssertEqual(events?.count, 1) guard let sentLogMessage = events?.first?.message else { XCTFail("Unable to verify last log message") @@ -222,16 +193,25 @@ class AWSCloudWatchLoggingPluginIntergrationTests: XCTestCase { XCTAssertTrue(sentLogMessage.contains(namespace)) } - func verifyMessageNotSent(client: CloudWatchLogsClientProtocol?, + func verifyMessageNotSent(plugin: AWSCloudWatchLoggingPlugin, + client: CloudWatchLogsClientProtocol?, logGroupName: String?, message: String) async throws { - let events = try await getLastMessageSent(client: client, logGroupName: logGroupName, message: message, requestAttempt: 0) + let events = try await getLastMessageSent( + plugin: plugin, + client: client, + logGroupName: logGroupName, + expectedMessageCount: 1, + message: message, + requestAttempt: 0) XCTAssertEqual(events?.count, 0) } - func getLastMessageSent(client: CloudWatchLogsClientProtocol?, + func getLastMessageSent(plugin: AWSCloudWatchLoggingPlugin, + client: CloudWatchLogsClientProtocol?, logGroupName: String?, + expectedMessageCount: Int, message: String, requestAttempt: Int) async throws -> [CloudWatchLogsClientTypes.FilteredLogEvent]? { let endTime = Date() @@ -239,12 +219,15 @@ class AWSCloudWatchLoggingPluginIntergrationTests: XCTestCase { let startTime = endTime.addingTimeInterval(TimeInterval(-durationInMinutes*60)) var events = try await AWSCloudWatchClientHelper.getFilterLogEventCount(client: client, filterPattern: message, startTime: startTime, endTime: endTime, logGroupName: logGroupName) - if events?.count == 0 && requestAttempt <= 5 { + if events?.count != expectedMessageCount && requestAttempt <= 5 { + try await plugin.flushLogs() try await Task.sleep(seconds: 30) let attempted = requestAttempt + 1 events = try await getLastMessageSent( + plugin: plugin, client: client, logGroupName: logGroupName, + expectedMessageCount: expectedMessageCount, message: message, requestAttempt: attempted) } diff --git a/AmplifyPlugins/Logging/Tests/AWSCloudWatchLoggingPluginHostApp/CloudWatchLoggingHostApp.xcodeproj/project.pbxproj b/AmplifyPlugins/Logging/Tests/AWSCloudWatchLoggingPluginHostApp/CloudWatchLoggingHostApp.xcodeproj/project.pbxproj index 5e3d1d941f..066f1c118a 100644 --- a/AmplifyPlugins/Logging/Tests/AWSCloudWatchLoggingPluginHostApp/CloudWatchLoggingHostApp.xcodeproj/project.pbxproj +++ b/AmplifyPlugins/Logging/Tests/AWSCloudWatchLoggingPluginHostApp/CloudWatchLoggingHostApp.xcodeproj/project.pbxproj @@ -8,9 +8,6 @@ /* Begin PBXBuildFile section */ 730C2E772AAA8A4B00878E67 /* AWSCloudWatchClientHelper.swift in Sources */ = {isa = PBXBuildFile; fileRef = 730C2E762AAA8A4B00878E67 /* AWSCloudWatchClientHelper.swift */; }; - 733390E92AAB8A6A006E3625 /* Amplify in Frameworks */ = {isa = PBXBuildFile; productRef = 733390E82AAB8A6A006E3625 /* Amplify */; }; - 733390EB2AAB8A6E006E3625 /* AWSCloudWatchLoggingPlugin in Frameworks */ = {isa = PBXBuildFile; productRef = 733390EA2AAB8A6E006E3625 /* AWSCloudWatchLoggingPlugin */; }; - 733390ED2AAB8A74006E3625 /* AWSCognitoAuthPlugin in Frameworks */ = {isa = PBXBuildFile; productRef = 733390EC2AAB8A74006E3625 /* AWSCognitoAuthPlugin */; }; 73578A2C2AAB945E00505FB3 /* CloudWatchLoggingApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 97AD223128230B98001AFCC1 /* CloudWatchLoggingApp.swift */; }; 73578A2D2AAB946300505FB3 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 97AD223328230B98001AFCC1 /* ContentView.swift */; }; 73578A3B2AAB94ED00505FB3 /* AWSCloudWatchLoggingPluginIntegrationTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 97DB824628233A1D00FC2228 /* AWSCloudWatchLoggingPluginIntegrationTests.swift */; }; @@ -19,9 +16,9 @@ 73607C792AA93466005105E6 /* Amplify in Frameworks */ = {isa = PBXBuildFile; productRef = 73607C782AA93466005105E6 /* Amplify */; }; 73607C7B2AA93469005105E6 /* AWSCloudWatchLoggingPlugin in Frameworks */ = {isa = PBXBuildFile; productRef = 73607C7A2AA93469005105E6 /* AWSCloudWatchLoggingPlugin */; }; 73607C7D2AA9346D005105E6 /* AWSCognitoAuthPlugin in Frameworks */ = {isa = PBXBuildFile; productRef = 73607C7C2AA9346D005105E6 /* AWSCognitoAuthPlugin */; }; - 73C43A2E2AB4ED800010F1B3 /* Amplify in Frameworks */ = {isa = PBXBuildFile; productRef = 73C43A2D2AB4ED800010F1B3 /* Amplify */; }; - 73C43A302AB4ED850010F1B3 /* AWSCognitoAuthPlugin in Frameworks */ = {isa = PBXBuildFile; productRef = 73C43A2F2AB4ED850010F1B3 /* AWSCognitoAuthPlugin */; }; - 73C43A322AB4ED8A0010F1B3 /* AWSCloudWatchLoggingPlugin in Frameworks */ = {isa = PBXBuildFile; productRef = 73C43A312AB4ED8A0010F1B3 /* AWSCloudWatchLoggingPlugin */; }; + 73C756A82AD8EB1C0042F7D4 /* Amplify in Frameworks */ = {isa = PBXBuildFile; productRef = 73C756A72AD8EB1C0042F7D4 /* Amplify */; }; + 73C756AA2AD8EB200042F7D4 /* AWSCognitoAuthPlugin in Frameworks */ = {isa = PBXBuildFile; productRef = 73C756A92AD8EB200042F7D4 /* AWSCognitoAuthPlugin */; }; + 73C756AC2AD8EB240042F7D4 /* AWSCloudWatchLoggingPlugin in Frameworks */ = {isa = PBXBuildFile; productRef = 73C756AB2AD8EB240042F7D4 /* AWSCloudWatchLoggingPlugin */; }; 97AD223228230B98001AFCC1 /* CloudWatchLoggingApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 97AD223128230B98001AFCC1 /* CloudWatchLoggingApp.swift */; }; 97AD223428230B98001AFCC1 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 97AD223328230B98001AFCC1 /* ContentView.swift */; }; 97AD223628230B9A001AFCC1 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97AD223528230B9A001AFCC1 /* Assets.xcassets */; }; @@ -69,9 +66,9 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 733390E92AAB8A6A006E3625 /* Amplify in Frameworks */, - 733390EB2AAB8A6E006E3625 /* AWSCloudWatchLoggingPlugin in Frameworks */, - 733390ED2AAB8A74006E3625 /* AWSCognitoAuthPlugin in Frameworks */, + 73C756A82AD8EB1C0042F7D4 /* Amplify in Frameworks */, + 73C756AA2AD8EB200042F7D4 /* AWSCognitoAuthPlugin in Frameworks */, + 73C756AC2AD8EB240042F7D4 /* AWSCloudWatchLoggingPlugin in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -79,9 +76,6 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 73C43A2E2AB4ED800010F1B3 /* Amplify in Frameworks */, - 73C43A302AB4ED850010F1B3 /* AWSCognitoAuthPlugin in Frameworks */, - 73C43A322AB4ED8A0010F1B3 /* AWSCloudWatchLoggingPlugin in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -189,9 +183,9 @@ ); name = CloudWatchLoggingWatchApp; packageProductDependencies = ( - 733390E82AAB8A6A006E3625 /* Amplify */, - 733390EA2AAB8A6E006E3625 /* AWSCloudWatchLoggingPlugin */, - 733390EC2AAB8A74006E3625 /* AWSCognitoAuthPlugin */, + 73C756A72AD8EB1C0042F7D4 /* Amplify */, + 73C756A92AD8EB200042F7D4 /* AWSCognitoAuthPlugin */, + 73C756AB2AD8EB240042F7D4 /* AWSCloudWatchLoggingPlugin */, ); productName = "CloudWatchLoggingWatchApp Watch App"; productReference = 733390D32AAB8A3B006E3625 /* CloudWatchLoggingWatchApp.app */; @@ -213,9 +207,6 @@ ); name = AWSCloudWatchLoggingPluginIntegrationTestsWatch; packageProductDependencies = ( - 73C43A2D2AB4ED800010F1B3 /* Amplify */, - 73C43A2F2AB4ED850010F1B3 /* AWSCognitoAuthPlugin */, - 73C43A312AB4ED8A0010F1B3 /* AWSCloudWatchLoggingPlugin */, ); productName = AWSCloudWatchLoggingPluginIntegrationTestsWatch; productReference = 73578A322AAB94D100505FB3 /* AWSCloudWatchLoggingPluginIntegrationTestsWatch.xctest */; @@ -466,7 +457,7 @@ SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = 4; - WATCHOS_DEPLOYMENT_TARGET = 9.4; + WATCHOS_DEPLOYMENT_TARGET = 10.0; }; name = Debug; }; @@ -498,7 +489,7 @@ SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = 4; - WATCHOS_DEPLOYMENT_TARGET = 9.4; + WATCHOS_DEPLOYMENT_TARGET = 10.0; }; name = Release; }; @@ -520,7 +511,7 @@ SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = 4; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CloudWatchLoggingWatchApp.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/CloudWatchLoggingWatchApp"; - WATCHOS_DEPLOYMENT_TARGET = 9.4; + WATCHOS_DEPLOYMENT_TARGET = 10.0; }; name = Debug; }; @@ -542,7 +533,7 @@ SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = 4; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CloudWatchLoggingWatchApp.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/CloudWatchLoggingWatchApp"; - WATCHOS_DEPLOYMENT_TARGET = 9.4; + WATCHOS_DEPLOYMENT_TARGET = 10.0; }; name = Release; }; @@ -846,18 +837,6 @@ /* End XCConfigurationList section */ /* Begin XCSwiftPackageProductDependency section */ - 733390E82AAB8A6A006E3625 /* Amplify */ = { - isa = XCSwiftPackageProductDependency; - productName = Amplify; - }; - 733390EA2AAB8A6E006E3625 /* AWSCloudWatchLoggingPlugin */ = { - isa = XCSwiftPackageProductDependency; - productName = AWSCloudWatchLoggingPlugin; - }; - 733390EC2AAB8A74006E3625 /* AWSCognitoAuthPlugin */ = { - isa = XCSwiftPackageProductDependency; - productName = AWSCognitoAuthPlugin; - }; 73607C782AA93466005105E6 /* Amplify */ = { isa = XCSwiftPackageProductDependency; productName = Amplify; @@ -870,15 +849,15 @@ isa = XCSwiftPackageProductDependency; productName = AWSCognitoAuthPlugin; }; - 73C43A2D2AB4ED800010F1B3 /* Amplify */ = { + 73C756A72AD8EB1C0042F7D4 /* Amplify */ = { isa = XCSwiftPackageProductDependency; productName = Amplify; }; - 73C43A2F2AB4ED850010F1B3 /* AWSCognitoAuthPlugin */ = { + 73C756A92AD8EB200042F7D4 /* AWSCognitoAuthPlugin */ = { isa = XCSwiftPackageProductDependency; productName = AWSCognitoAuthPlugin; }; - 73C43A312AB4ED8A0010F1B3 /* AWSCloudWatchLoggingPlugin */ = { + 73C756AB2AD8EB240042F7D4 /* AWSCloudWatchLoggingPlugin */ = { isa = XCSwiftPackageProductDependency; productName = AWSCloudWatchLoggingPlugin; }; diff --git a/AmplifyPlugins/Logging/Tests/AWSCloudWatchLoggingPluginHostApp/CloudWatchLoggingHostApp.xcodeproj/xcshareddata/xcschemes/AWSCloudWatchLoggingPluginIntegrationTests.xcscheme b/AmplifyPlugins/Logging/Tests/AWSCloudWatchLoggingPluginHostApp/CloudWatchLoggingHostApp.xcodeproj/xcshareddata/xcschemes/AWSCloudWatchLoggingPluginIntegrationTests.xcscheme index dd5e2ff1c9..90eed8a12a 100644 --- a/AmplifyPlugins/Logging/Tests/AWSCloudWatchLoggingPluginHostApp/CloudWatchLoggingHostApp.xcodeproj/xcshareddata/xcschemes/AWSCloudWatchLoggingPluginIntegrationTests.xcscheme +++ b/AmplifyPlugins/Logging/Tests/AWSCloudWatchLoggingPluginHostApp/CloudWatchLoggingHostApp.xcodeproj/xcshareddata/xcschemes/AWSCloudWatchLoggingPluginIntegrationTests.xcscheme @@ -28,6 +28,7 @@ buildConfiguration = "Debug" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" + disableMainThreadChecker = "YES" launchStyle = "0" useCustomWorkingDirectory = "NO" ignoresPersistentStateOnLaunch = "NO" diff --git a/AmplifyPlugins/Logging/Tests/AWSCloudWatchLoggingPluginHostApp/CloudWatchLoggingHostApp.xcodeproj/xcshareddata/xcschemes/AWSCloudWatchLoggingPluginIntegrationTestsWatch.xcscheme b/AmplifyPlugins/Logging/Tests/AWSCloudWatchLoggingPluginHostApp/CloudWatchLoggingHostApp.xcodeproj/xcshareddata/xcschemes/AWSCloudWatchLoggingPluginIntegrationTestsWatch.xcscheme index fba1f5ca96..19b32774a3 100644 --- a/AmplifyPlugins/Logging/Tests/AWSCloudWatchLoggingPluginHostApp/CloudWatchLoggingHostApp.xcodeproj/xcshareddata/xcschemes/AWSCloudWatchLoggingPluginIntegrationTestsWatch.xcscheme +++ b/AmplifyPlugins/Logging/Tests/AWSCloudWatchLoggingPluginHostApp/CloudWatchLoggingHostApp.xcodeproj/xcshareddata/xcschemes/AWSCloudWatchLoggingPluginIntegrationTestsWatch.xcscheme @@ -30,6 +30,7 @@ buildConfiguration = "Debug" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" + disableMainThreadChecker = "YES" launchStyle = "0" useCustomWorkingDirectory = "NO" ignoresPersistentStateOnLaunch = "NO" diff --git a/AmplifyPlugins/Logging/Tests/AWSCloudWatchLoggingPluginHostApp/CloudWatchLoggingHostApp.xcodeproj/xcshareddata/xcschemes/CloudWatchLoggingHostApp.xcscheme b/AmplifyPlugins/Logging/Tests/AWSCloudWatchLoggingPluginHostApp/CloudWatchLoggingHostApp.xcodeproj/xcshareddata/xcschemes/CloudWatchLoggingHostApp.xcscheme index adc08ae428..4d37192fe1 100644 --- a/AmplifyPlugins/Logging/Tests/AWSCloudWatchLoggingPluginHostApp/CloudWatchLoggingHostApp.xcodeproj/xcshareddata/xcschemes/CloudWatchLoggingHostApp.xcscheme +++ b/AmplifyPlugins/Logging/Tests/AWSCloudWatchLoggingPluginHostApp/CloudWatchLoggingHostApp.xcodeproj/xcshareddata/xcschemes/CloudWatchLoggingHostApp.xcscheme @@ -44,6 +44,7 @@ buildConfiguration = "Debug" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" + disableMainThreadChecker = "YES" launchStyle = "0" useCustomWorkingDirectory = "NO" ignoresPersistentStateOnLaunch = "NO"