skip to Main Content

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


  1. Chosen as BEST ANSWER

    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.


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

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search