I xcloud build got success but archive failed

I can create and export build to appstore manually.but I am facing issues while uploading build to testflight using xcloud .Build successfully created but archive got failure.

ERROR: Old-style type encoding is unsupported in attribute string "%s" for property %s\n", attrString, property_getName(property)); AWSEXTRuntimeExtensions.m:164

ERROR: Could not read class name in attribute string "%s" for property %s\n", attrString, property_getName(property)); AWSEXTRuntimeExtensions.m:57

Command PhaseScriptExecution emitted errors but did not return a nonzero exit code to indicate failure

ERROR: Unrecognized attribute string flag '%c' in attribute string "%s" for property %s\n", flag, attrString, property_getName(property)); AWSEXTRuntimeExtensions.m:173

ERROR: Unable to load PhoneNumberMetadata.json resource: (error.localizedDescription)") MetadataManager.swift:61

ERROR: Expected attribute string "%s" for property %s to start with 'T'\n", attrString, property_getName(property)); AWSEXTRuntimeExtensions.m:22

ERROR: Invalid type in attribute string "%s" for property %s\n", attrString, property_getName(property)); AWSEXTRuntimeExtensions.m:35

ERROR: Could not get attribute string from property %s\n", property_getName(property)); AWSEXTRuntimeExtensions.m:17

ERROR: Could not read past type in attribute string "%s" for property %s\n", attrString, property_getName(property)); AWSEXTRuntimeExtensions.m:29

ERROR: Could not allocate awsmtl_propertyAttributes structure for attribute string "%s" for property %s\n", attrString, property_getName(property)); AWSEXTRuntimeExtensions.m:42

This errors are coming but they are not restricting build in manual process

I had the same problem because of a developer-added script in Build Phases:

TAGS="TODO-DEV:|FIXME:"
ERRORTAG="ERROR:"
find "${SRCROOT}" \( -name "*.h" -or -name "*.m" -or -name "*.swift" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($TAGS).*\$|($ERRORTAG).*\$" | perl -p -e "s/($TAGS)/ warning: \$1/" | perl -p -e "s/($ERRORTAG)/ error: \$1/"

It's easy to fix:

TAGS="TODO-DEV:|FIXME:"
find "${SRCROOT}" \( -name "*.h" -or -name "*.m" -or -name "*.swift" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($TAGS).*\$" | perl -p -e "s/($TAGS)/ warning: \$1/"
I xcloud build got success but archive failed
 
 
Q