Fix “Build input file cannot be found“ error in Xcode
Build input file cannot be found
Build input file cannot be found: 'path/to/file'. Did you forget to declare this file as an output of a script phase or custom build rule which produces it?
This pretty not understandable error can happen for multiple reasons.
May be, there was some merging conflict to apply and it went wrong.
Or in my case, it happened after I added a new target to the project.
The error was caused by excluding the
arm64 architecture for the new target.
In the main target the wasn’t any excluded architecture but in the new target Xcode added
arm64 automatically to the
To solve it:
- In the
Navigator sidebarselect your project
- Then, select the affected target in the
Project and targetssidebar
- Go to
Build settingsand search for
- Double-click on the corresponding row and remove the
- Clean your project (
cmd + shift + K) or for a hard clean (
cmd + option + shift + K)
- Close Xcode
- Open your project again and build
Hopefully the error is now gone.
Thank you for reading
What are you thoughts about this? Tweet me @franceleonidev and share your opinion.
- Mobile App Development (439)