Command builtin-swiftStdLibTool emitted errors but did not return a nonzero exit code to indicate failure

When trying to build application using command   Xcodebuild -project Project.xcodeproj  -scheme Trainer -configuration Release -xcconfig Config.xcconfig clean archive -archivePath build/Application   Getting below error     /usr/bin/codesign ‘–force’ ‘–sign’ ‘A8757475EA62AAF09FFC150F654421253EDF490E’ ‘–verbose’ ‘/Users/Library/Developer/Xcode/DerivedData/Trainer-esvcuzaerwfcyzdsyzzjcpjvcwui/Build/Intermediates/ArchiveIntermediates/Trainer/InstallationBuildProductsLocation/Applications/QA Member Connect.app/Frameworks/libswiftFoundation.dylib’ 2017-08-09 21:25:22.567056-0500 codesign[2529:23876] [security_exception] MacOS error: -67062 /Users/ash/Library/Developer/Xcode/DerivedData/Trainer-esvcuzaerwfcyzdsyzzjcpjvcwui/Build/Intermediates/ArchiveIntermediates/Trainer/InstallationBuildProductsLocation/Applications/QA Member Connect.app/Frameworks/libswiftCoreLocation.dylib:…