Bitrise Xcode Archive & Export for iOS Failed

Description of the issue

I received an error when I try to build iOS app with react-native

Issue happens when xCode is archiving the app

similar issue Bitrise-ios-archive-failed-phasescriptexecution

The following build commands failed:

PhaseScriptExecution Bundle\ React\ Native\ code\ and\ images /Users/[REDACTED]/Library/Developer/Xcode/DerivedData/aido-grgxbkybjdvmbtbewlhacflwpqrl/Build/Intermediates.noindex/ArchiveIntermediates/aido/IntermediateBuildFilesPath/ (in target 'aido' from project 'aido')

(1 failure)

You can find the last couple of lines of Xcode's build log above, but the full log will be also available in the xcodebuild-archive.log

The log file will be stored in $BITRISE_DEPLOY_DIR, and its full path will be available in the $BITRISE_XCODEBUILD_ARCHIVE_LOG_PATH environment variable.

Failed to execute Step main logic:

failed to archive the project:

command failed with exit status 65 (set -o pipefail && xcodebuild "archive" "-workspace" "/Users/[REDACTED]/git/ios/aido.xcworkspace" "-scheme" "aido" "-configuration" "Release" "-xcconfig" "/var/folders/69/qgnyrbkx23dbp0p6p_b6bc9m0000gn/T/2909697433/temp.xcconfig" "-archivePath" "/var/folders/69/qgnyrbkx23dbp0p6p_b6bc9m0000gn/T/xcodeArchive563663222/Aido.xcarchive" "-destination" "generic/platform=iOS" | xcpretty)

Exporting outputs...

The xcodebuild archive log path is now available in the Environment Variable: BITRISE_XCODEBUILD_ARCHIVE_LOG_PATH (value: /Users/[REDACTED]/deploy/xcodebuild-archive.log)