4

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')'

HangarRash
  • 7,314
  • 5
  • 5
  • 32
Ramprasath Selvam
  • 3,868
  • 3
  • 25
  • 41

2 Answers2

1

I added i386 in Excluded Architectures under the build setting in both (App and widget) targets.

App target enter image description here

Widget target enter image description here

After adding the i386 in Excluded Architectures this issue is resolved for myself.

Ramprasath Selvam
  • 3,868
  • 3
  • 25
  • 41
0

F got the same problem, I will let you know when I found some thing

Bas9990
  • 144
  • 6