iosxcodeappledoc

Xcode - Build input file cannot be found


After upgrading from Xcode 12, on any version of Xcode 13 or later, the following error occurs when running the sudo sh install-appledoc.sh command:

Build input file cannot be found: '~/<ProjectDir>/appledoc/default_templates.zip'. Did you forget to declare this file as an output of a script phase or custom build rule which produces it? (in target 'appledoc' from project 'appledoc')

After researching the issue, the best lead I could find was to make sure that the target does not have any excluded architectures, which it does not. I can also confirm the noted file does exist at the stated location. So I am stumped on this one. Any ideas on how to fix please?


Solution

  • This can be fixed by adding $(PROJECT_DIR)/default_templates.zip to the Output Files section of the Build Phases of the Appledoc project.