In Xcode 14 after adding the Widget target we are facing the below issue while Archive the build.
error: Build input file cannot be found:
'/Users/ramprasathselvam/Library/Developer/Xcode/DerivedData/XXXX-hblrdkreixdjltdnvjrxmvejbzjs/Build/Intermediates.noindex/ArchiveIntermediates/CCCC/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/XXWidgetExtension.appex/XXWidgetExtension'.
Did you forget to declare this file as an output of a script phase or custom build rule which produces it? (in target 'XXWidgetExtension' from project 'XXXX')'