Command PhaseScriptExecution failed with a nonzero exit code

I had my iOS app building and working fine, then i add Firebase and rebuilt. Now, I cannot build any more.

I have tried the following:

  • clean and rebuild
  • update MacOS which is now Ventura 13.3.1
  • update XCode which is now 14.3
  • deleted Dervived Data

Appears its a signing issue?

Code Signing /Users/<myuser>/Library/Developer/Xcode/DerivedData/BBDT-gzogibsubstvgacmubwmpntqzmbp/Build/Products/Debug-iphoneos/BBDT.app/Frameworks/Alamofire.framework with Identity Apple Development: <my dev username> (<mydevid>)
/usr/bin/codesign --force --sign FCB64C6F76CA804229C85ADAFAB2CC2FFA2D821D  --preserve-metadata=identifier,entitlements '/Users/<myuser>//Library/Developer/Xcode/DerivedData/BBDT-gzogibsubstvgacmubwmpntqzmbp/Build/Products/Debug-iphoneos/BBDT.app/Frameworks/Alamofire.framework'
/Users/<myuser>//Library/Developer/Xcode/DerivedData/BBDT-gzogibsubstvgacmubwmpntqzmbp/Build/Products/Debug-iphoneos/BBDT.app/Frameworks/Alamofire.framework: errSecInternalComponent
Command PhaseScriptExecution failed with a nonzero exit code