I have added the flag -f and also downgraded to Xcode 12, but still the issue exists. @vadimwe solutions worked for most, but thst still didn't fix my issue. Is there any other workaround.
`
PhaseScriptExecution [CP]\ Embed\ Pods\ Frameworks /Users/hclabs/Library/Developer/Xcode/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/plutomobile/IntermediateBuildFilesPath/plutomobile.build/Release-iphoneos/plutomobile.build/Script-44280D450D5E221B6620F3A5.sh (in target 'plutomobile' from project 'plutomobile')
cd /Users/hclabs/Downloads/pluto-mobile/ios
/bin/sh -c /Users/hclabs/Library/Developer/Xcode/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/plutomobile/IntermediateBuildFilesPath/plutomobile.build/Release-iphoneos/plutomobile.build/Script-44280D450D5E221B6620F3A5.sh
this is the error that comes after I try to take an archive build. I could run the app on the simulator, this issue is only while taking build.