After Xcode update app doesn’t compile/Archive

Has anyone recently updated their Xcode, iOS and MacOS and is perhaps having the same issue as me? I have updated Xcode to latest version and after trying to Archive the app so I could upload a new build version to app store I keep getting this error:

Command PhaseScriptExecution failed with a nonzero exit code

and this:

PhaseScriptExecution [CP]\ Embed\ Pods\ Frameworks /Users/blazw/Library/Developer/Xcode/DerivedData/App-cjlyvstgewichsheopwjaqqfczpa/Build/Intermediates.noindex/ArchiveIntermediates/Svet\ gastronimije/IntermediateBuildFilesPath/App.build/Release-iphoneos/Svet\ gastronimije.build/Script-421B80DAB9083632D2B6ED13.sh (in target 'Svet gastronimije' from project 'App')
    cd /Users/blazw/Documents/Personal/Angular/vigros-app/ios/App
    /bin/sh -c /Users/blazw/Library/Developer/Xcode/DerivedData/App-cjlyvstgewichsheopwjaqqfczpa/Build/Intermediates.noindex/ArchiveIntermediates/Svet\\\ gastronimije/IntermediateBuildFilesPath/App.build/Release-iphoneos/Svet\\\ gastronimije.build/Script-421B80DAB9083632D2B6ED13.sh

mkdir -p /Users/blazw/Library/Developer/Xcode/DerivedData/App-cjlyvstgewichsheopwjaqqfczpa/Build/Intermediates.noindex/ArchiveIntermediates/Svet gastronimije/BuildProductsPath/Release-iphoneos/Svet gastronimije.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/Capacitor.framework" "/Users/blazw/Library/Developer/Xcode/DerivedData/App-cjlyvstgewichsheopwjaqqfczpa/Build/Intermediates.noindex/ArchiveIntermediates/Svet gastronimije/InstallationBuildProductsLocation/Applications/Svet gastronimije.app/Frameworks"
building file list ... rsync: link_stat "/Users/blazw/Documents/Personal/Angular/vigros-app/ios/App/../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/Capacitor.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 get this error only when Archiving the app… it builds normally if I connect my iPhone to my Mac and run it on the phone…

Replies

Have you deleted derived data, do a Clean Build Folder ?

Update cocoapods to 1.12.1

https://github.com/ionic-team/capacitor/issues/6457