From b9d8f851009a11eab10c29c7e925f43166fb79fb Mon Sep 17 00:00:00 2001 From: Alexey Alter-Pesotskiy Date: Thu, 25 Jul 2024 00:05:32 +0100 Subject: [PATCH] Resolve test cert issue (#3334) --- StreamChat.xcodeproj/project.pbxproj | 14 ++++++++++---- fastlane/Fastfile | 14 +++++++------- 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/StreamChat.xcodeproj/project.pbxproj b/StreamChat.xcodeproj/project.pbxproj index 55a511db9f..8183f46e98 100644 --- a/StreamChat.xcodeproj/project.pbxproj +++ b/StreamChat.xcodeproj/project.pbxproj @@ -13883,9 +13883,11 @@ CLANG_CXX_LANGUAGE_STANDARD = "gnu++17"; CODE_SIGN_ENTITLEMENTS = StreamChatUITestsApp/StreamChatUITestsApp.entitlements; CODE_SIGN_IDENTITY = "Apple Development"; - CODE_SIGN_STYLE = Automatic; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = EHV7XZLAHA; + DEVELOPMENT_TEAM = ""; + "DEVELOPMENT_TEAM[sdk=iphoneos*]" = EHV7XZLAHA; GCC_OPTIMIZATION_LEVEL = s; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = StreamChatUITestsApp/Info.plist; @@ -13903,6 +13905,7 @@ PRODUCT_BUNDLE_IDENTIFIER = io.getstream.iOS.StreamChatUITestsApp; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; + "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "match Development io.getstream.iOS.StreamChatUITestsApp"; SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG TESTS"; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_OPTIMIZATION_LEVEL = "-O"; @@ -13985,9 +13988,11 @@ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; CLANG_CXX_LANGUAGE_STANDARD = "gnu++17"; CODE_SIGN_IDENTITY = "Apple Development"; - CODE_SIGN_STYLE = Automatic; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = EHV7XZLAHA; + DEVELOPMENT_TEAM = ""; + "DEVELOPMENT_TEAM[sdk=iphoneos*]" = EHV7XZLAHA; GCC_OPTIMIZATION_LEVEL = s; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = Tests/Info.plist; @@ -13998,6 +14003,7 @@ PRODUCT_BUNDLE_IDENTIFIER = io.getstream.iOS.StreamChatUITestsAppUITests; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; + "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "match Development io.getstream.iOS.StreamChatUITestsAppUITests.xctrunner"; SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; SUPPORTS_MACCATALYST = NO; SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 40b20a9a4b..327d29c842 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -433,13 +433,13 @@ lane :xcmetrics do |options| benchmark_value_avoids_zero_division = benchmark_value == 0 ? 1 : benchmark_value diff = is_frame_rate ? branch_value - benchmark_value : benchmark_value - branch_value diff = (diff * 100.0 / benchmark_value_avoids_zero_division).round(2) - if diff > 0 - '🔼' - elsif diff.zero? - '🟰' - else - '🔽' - end + diff_emoji = if diff > 0 + '🔼' + elsif diff.zero? + '🟰' + else + '🔽' + end status_emoji = if is_frame_rate