Command PhaseScriptExecution failed with a nonzero exit code

Hi,

I have a project written in Swift 4 and the following pods are being used in the project:

'GoogleAnalytics'
'GoogleMaps'
'GooglePlaces'
'CarbonKit'
'Firebase/Core'
'Firebase/Messaging'
'Fabric'
'Crashlytics'
'JGProgressHUD'
"QBImagePickerController"
"YoutubePlayer-in-WKWebView", "~> 0.3.0"
'TrustKit'
'SwiftDate', '~> 5.0'

When I am trying to build the same code in XCode version 11.3.1 (11C505), it’s working fine. 
But the same code when I am running in XCode version 12.4 (12D4e), it’s showing the following error:

 PhaseScriptExecution [CP]\ Embed\ Pods\ Frameworks /Users/pradip.deore/Library/Developer/Xcode/DerivedData/Re-DeploymentApp-cckdvghmcfgjmdgatkuburgwfion/Build/Intermediates.noindex/Re-Deployment\ App.build/Debug-iphonesimulator/Re-Deployment\ App.build/Script-CE61236C3D7447A8846EA69E.sh (in target 'Re-Deployment App' from project 'Re-Deployment App')
  cd /Users/pradip.deore/Projects/iOS
employer
  /bin/sh -c /Users/pradip.deore/Library/Developer/Xcode/DerivedData/Re-DeploymentApp-cckdvghmcfgjmdgatkuburgwfion/Build/Intermediates.noindex/Re-Deployment\\\ App.build/Debug-iphonesimulator/Re-Deployment\\\ App.build/Script-CE61236C3D7447A8846EA69E.sh

mkdir -p /Users/pradip.deore/Library/Developer/Xcode/DerivedData/Re-Deployment
App-cckdvghmcfgjmdgatkuburgwfion/Build/Products/Debug-iphonesimulator/ClikSource.app/Frameworks
rsync --delete -av --filter P .*.?????? --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "/Users/pradip.deore/Library/Developer/Xcode/DerivedData/Re-DeploymentApp-cckdvghmcfgjmdgatkuburgwfion/Build/Products/Debug-iphonesimulator/CarbonKit/CarbonKit.framework" "/Users/pradip.deore/Library/Developer/Xcode/DerivedData/Re-DeploymentApp-cckdvghmcfgjmdgatkuburgwfion/Build/Products/Debug-iphonesimulator/ClikSource.app/Frameworks"
building file list ... done

sent 205 bytes received 20 bytes 450.00 bytes/sec
total size is 188599 speedup is 838.22
/Users/pradip.deore/Projects/iOS_employer/Pods/Target Support Files/Pods-Re-Deployment App/Pods-Re-Deployment App-frameworks.sh: line 131: ARCHS[@]: unbound variable
Command PhaseScriptExecution failed with a nonzero exit code


I am unable to find a solution for this. Please help to resolve this issue. 
I'm also facing this issue. Any solution to the above problem?

I'm also facing this issue.

Command PhaseScriptExecution failed with a nonzero exit code
 
 
Q