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’)’
2
Answers
I added
i386
inExcluded Architectures
under thebuild setting
in both (App and widget) targets.App target
Widget target
After adding the i386 in Excluded Architectures this issue is resolved for myself.
F got the same problem, I will let you know when I found some thing