From 9a9e712bbb01820d8b242b514aa29acca17de643 Mon Sep 17 00:00:00 2001 From: Chris Vasselli Date: Thu, 23 Mar 2023 17:27:22 +0900 Subject: [PATCH] Pass the -f option when resolving the path to the symlinked source. Fixes the issue where archives fail when using Xcode 14.3. Xcode 14.3 is now using a relative path in its symlink for frameworks. Without the -f flag, this relative path would be evaluated relative to the working directory of the script being executed, instead of relative to the framework symlink itself. With the -f flag, it resolves that relative path and returns the full path to the source. --- lib/cocoapods/generator/embed_frameworks_script.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cocoapods/generator/embed_frameworks_script.rb b/lib/cocoapods/generator/embed_frameworks_script.rb index d1772ebb08..e4956eebde 100644 --- a/lib/cocoapods/generator/embed_frameworks_script.rb +++ b/lib/cocoapods/generator/embed_frameworks_script.rb @@ -83,7 +83,7 @@ def script if [ -L "${source}" ]; then echo "Symlinked..." - source="$(readlink "${source}")" + source="$(readlink -f "${source}")" fi if [ -d "${source}/${BCSYMBOLMAP_DIR}" ]; then