Xcode 11.3 Command PhaseScriptExecution failed with a nonzero exit code

I have tried multiple ways with online given solutions but I can't fix this one please help me out.
Warning: unable to build chain to self-signed root for signer "Apple Development: ******** "

/Users/nStore/Library/Developer/Xcode/DerivedData/nLincs-ekaxuulxmicloabblhqosshfdttu/Build/Products/Debug-iphoneos/nLincs.app/Frameworks/Alamofire.framework: errSecInternalComponent

Command PhaseScriptExecution failed with a nonzero exit code

Replies

This error throws while Build/archiving the build. But able to run on only simulators, not on any devices.
Your help will be appreciated. Help me with this.