From eb56d603e5038afd5b06cde93247118309fc266a Mon Sep 17 00:00:00 2001 From: Morgan Pretty Date: Wed, 5 Apr 2023 18:09:48 +1000 Subject: [PATCH] Added a workaround for a Cocoapods XCode 14.3 issue --- Podfile | 12 ++++++++++++ Podfile.lock | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Podfile b/Podfile index fe69ab1cf..d69db9d91 100644 --- a/Podfile +++ b/Podfile @@ -105,6 +105,9 @@ post_install do |installer| enable_whole_module_optimization_for_crypto_swift(installer) set_minimum_deployment_target(installer) enable_fts5_support(installer) + + #FIXME: Remove this workaround once an official fix is released (hopefully Cocoapods 1.12.1) + xcode_14_3_workaround(installer) end def enable_whole_module_optimization_for_crypto_swift(installer) @@ -135,3 +138,12 @@ def enable_fts5_support(installer) end end end + +# Workaround for Xcode 14.3: +# Sourced from https://github.com/flutter/flutter/issues/123852#issuecomment-1493232105 +def xcode_14_3_workaround(installer) + system('sed -i \'\' \'44s/readlink/readlink -f/\' \'Pods/Target Support Files/Pods-GlobalDependencies-FrameworkAndExtensionDependencies-ExtendedDependencies-SessionMessagingKit-SessionMessagingKitTests/Pods-GlobalDependencies-FrameworkAndExtensionDependencies-ExtendedDependencies-SessionMessagingKit-SessionMessagingKitTests-frameworks.sh\'') + system('sed -i \'\' \'44s/readlink/readlink -f/\' \'Pods/Target Support Files/Pods-GlobalDependencies-FrameworkAndExtensionDependencies-ExtendedDependencies-SessionUtilitiesKit-SessionUtilitiesKitTests/Pods-GlobalDependencies-FrameworkAndExtensionDependencies-ExtendedDependencies-SessionUtilitiesKit-SessionUtilitiesKitTests-frameworks.sh\'') + system('sed -i \'\' \'44s/readlink/readlink -f/\' \'Pods/Target Support Files/Pods-GlobalDependencies-Session/Pods-GlobalDependencies-Session-frameworks.sh\'') + system('sed -i \'\' \'44s/readlink/readlink -f/\' \'Pods/Target Support Files/Pods-GlobalDependencies-Session-SessionTests/Pods-GlobalDependencies-Session-SessionTests-frameworks.sh\'') +end diff --git a/Podfile.lock b/Podfile.lock index 9cd0a2706..3088b746b 100644 --- a/Podfile.lock +++ b/Podfile.lock @@ -242,6 +242,6 @@ SPEC CHECKSUMS: YYImage: f1ddd15ac032a58b78bbed1e012b50302d318331 ZXingObjC: fdbb269f25dd2032da343e06f10224d62f537bdb -PODFILE CHECKSUM: 97324ae5888b01db2f2adc4dcc239e2e7d6867f7 +PODFILE CHECKSUM: e9443a8235dbff1fc342aa9bf08bbc66923adf68 COCOAPODS: 1.11.3