After Last Xcode Update (14.3 14E222b) I am no longer able to archive my app

A few days ago, I updated to a new XCode version. I am trying to upload a new version of my dictionary app. Despite the app continues to work on iPhone and iPad emulator and on my MacBook air without any problems, archiving fails, with errors like:

"Showing Recent Messages

PhaseScriptExecution [CP]\ Embed\ Pods\ Frameworks /Users/***/Library/Developer/Xcode/DerivedData/TDSo zluk-fyaevjsikqxslsfftcfoztnlvofn/Build/Intermediates.noindex/ArchiveIntermediates/TDSozluk/IntermediateBuildFilesPath/TDSozluk.build/Release-iphoneos/Cevirdic.biz.build/Script-230E8AB192F5AF3BFB41DCB3.sh (in target 'Cevirdic.biz' from project 'TDSozluk')

cd /Users/****/Documents/xcode\ tutorials/TDSozluk

/bin/sh -c /Users/***Library/Developer/Xcode/DerivedData/TDSozluk-fyaevjsikqxslsfftcfoztnlvofn/Build/Intermediates.noindex/ArchiveIntermediates/TDSozluk/IntermediateBuildFilesPath/TDSozluk.build/Release-iphoneos/Cevirdic.biz.build/Script-230E8AB192F5AF3BFB41DCB3.sh

mkdir -p /Users/****/Library/Developer/Xcode/DerivedData/TDSozluk-fyaevjsikqxslsfftcfoztnlvofn/Build/Intermediates.noindex/ArchiveIntermediates/TDSozluk/BuildProductsPath/Release-iphoneos/Cevirdic.biz.app/Frameworks

Symlinked...

rsync --delete -av --filter P ..?????? --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework" "/Users/***/Library/Developer/Xcode/DerivedData/TDSozluk-fyaevjsikqxslsfftcfoztnlvofn/Build/Intermediates.noindex/ArchiveIntermediates/TDSozluk/InstallationBuildProductsLocation/Applications/Cevirdic.biz.app/Frameworks"

building file list ... rsync: link_stat "/Users/****/Documents/xcode tutorials/TDSozluk/../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework" failed: No such file or directory (2)

done

sent 29 bytes received 20 bytes 98.00 bytes/sec

total size is 0 speedup is 0.00

rsync error: some files could not be transferred (code 23) at /AppleInternal/Library/BuildRoots/97f6331a-ba75-11ed-a4bc-863efbbaf80d/Library/Caches/com.apple.xbs/Sources/rsync/rsync/main.c(996) [sender=2.6.9] Command PhaseScriptExecution failed with a nonzero exit code mkdir -p /Users/**/Library/Developer/Xcode/DerivedData/TDSozluk-fyaevjsikqxslsfftcfoztnlvofn/Build/Intermediates.noindex/ArchiveIntermediates/TDSozluk/BuildProductsPath/Release-iphoneos/Cevirdic.biz.app/Frameworks Symlinked... rsync --delete -av --filter P ..?????? --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework" "/Users/****/Library/Developer/Xcode/DerivedData/TDSozluk-fyaevjsikqxslsfftcfoztnlvofn/Build/Intermediates.noindex/ArchiveIntermediates/TDSozluk/InstallationBuildProductsLocation/Applications/Cevirdic.biz.app/Frameworks" building file list ... rsync: link_stat "/Users/altan/Documents/xcode tutorials/TDSozluk/../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework" failed: No such file or directory (2) done sent 29 bytes received 20 bytes 98.00 bytes/sec total size is 0 speedup is 0.00 rsync error: some files could not be transferred (code 23) at /AppleInternal/Library/BuildRoots/97f6331a-ba75-11ed-a4bc-863efbbaf80d/Library/Caches/com.apple.xbs/Sources/rsync/rsync/main.c(996) [sender=2.6.9] Command PhaseScriptExecution failed with a nonzero exit code"

I don't know if the problem arises from something I did but despite I did everything I could find online (like reinstalling cocoapods, uninstalling them, defining the google modules expilitly, etc.) I am failing with flying colors. Since I cannot archive the app I cannot upload it to the store. What should I do?

TIA

P.S. After the first version of the app (which I successfully archived and published) I changed its app/module name from TDSozluk to Cevirdic.biz. However this caused no complications till the latest XCode update and I WAS able to archive and upload many (about 5) updates of the newly named app (ie cevirdic.biz.

Answered by machl in 749445022

There is an issue with Cocoapods now, because Xcode 14.3 is now using a relative path in its symlink for frameworks.

Either wait for release of Cocoapods version 1.12.1 or make this simple change in your Pods-APPNAME-frameworks.sh file:

Replace:

  if [ -L "${source}" ]; then
    echo "Symlinked..."
    source="$(readlink "${source}")"
  fi

with:

  if [ -L "${source}" ]; then
    echo "Symlinked..."
    source="$(readlink -f "${source}")"
  fi

Note that -f was added.

Hi TIA,

I had the same issue. After messing around with it for a day, I just downgraded back to XCode 14.2. I was able to archive and upload to the App Store as usual. In addition to deleting XCode 14.3, I deleted the contents in the Derived Data folder. Not sure if it was necessary, but you may want to do that as a precaution.

Here is where you can download older versions of XCode: https://developer.apple.com/download/all/?q=Xcode

I just now started having the exact same issue. The build runs fine on a physical device and simulator, but I cannot archive it to send to TestFlight.

I am getting same error

I'm having the same issue.

I have the same issue.. anyone knows the solution?

Same problem here

Same here, for all production builds actually. The breaking change in a minor release does not seem to be planned.

Same problem here. Anyone found a solution?

Same problem

Same problem here. Anyone found a solution yet?

Same problem here. Anyone found a solution?

It works when copy "arc" folder to "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/"

Accepted Answer

There is an issue with Cocoapods now, because Xcode 14.3 is now using a relative path in its symlink for frameworks.

Either wait for release of Cocoapods version 1.12.1 or make this simple change in your Pods-APPNAME-frameworks.sh file:

Replace:

  if [ -L "${source}" ]; then
    echo "Symlinked..."
    source="$(readlink "${source}")"
  fi

with:

  if [ -L "${source}" ]; then
    echo "Symlinked..."
    source="$(readlink -f "${source}")"
  fi

Note that -f was added.

110

And it worked. Thank you a million!...

thank u very very much. I spent the whole day to try to resole the problem ...

Now I am encountering another problem: I can now archive the app but when I try to validate and/or distribute app, the Archives dialog box says it cannot find my App Store Connect Credentials. Anybody else experience this? I even opened a bug report for this but so far no response/action yet.

If you are using cocoapods, they already fixed it in master, but have not released an update yet. You can install version from master using:

gem install specific_install
gem specific_install -l https://github.com/CocoaPods/CocoaPods.git

You saved my day! thanks

Two possible solutions to CocoaPods breaking with Xcode 14.3 (it is due to Path change in Xcode)

  1. change the script in CocoaPods as noted above

  2. download Xcode 14.2 and use it until the new revision of CocoaPods is available

Did anyone find solutions for this problem I am getting this kind of error while I am archived my app.

rsync error: some files could not be transferred (code 23) at /AppleInternal/Library/BuildRoots/97f6331a-ba75-11ed-a4bc-863efbbaf80d/Library/Caches/com.apple.xbs/Sources/rsync/rsync/main.c(996) [sender=2.6.9] Command PhaseScriptExecution failed with a nonzero exit code

Hello, I'm working on a project with react native. When try to build I have this error: "Command PhaseScriptExecution failed with a nonzero exit code"

I've tried all solutions from this thread but error is not fixed. I've tried also to build with xcode 14.2, but same error. I've tried to add -f to readlink, same error I've tried to install cocoapods gem from master branch, same error. I'm blocked now. Can anyone help me with this?

That works! Thank you so much - I couldn't have figured this out - you are a genius.

Same problems here.

  1. React native repo can't see react native views - white pages
  2. Git credential manager - auth window keeps prompting up to sign in

Had the same issue.

.... some files could not be transferred (code 23) .......

and yeah, it was an issue on the cocoapods framework. On the latest release, they fixed it and now works!

https://github.com/CocoaPods/CocoaPods/releases/tag/1.12.1

To fix this problem, just update the cocoapods version. Xcode 14.3 : cocoapods 1.12.1.

After Last Xcode Update (14.3 14E222b) I am no longer able to archive my app
 
 
Q