If your app runs successfully on both a device and an emulator, but fails during the archiving process.
PhaseScriptExecution [CP]\ Embed\ Pods\ Frameworks
Command PhaseScriptExecution failed with a nonzero exit code
`
If your app runs successfully on both a device and an emulator, but fails during the archiving process.
PhaseScriptExecution [CP]\ Embed\ Pods\ Frameworks
Command PhaseScriptExecution failed with a nonzero exit code
`
You should search for this file in your project.
Pods-[your-project-name]-frameworks.sh (...-frameworks.sh)
Eg: Pods-sampleApp-frameworks.sh
And edit this section.
Changed To:
-fis added after readlinkRef. : https://github.com/CocoaPods/CocoaPods/issues/11808