I am using m1 mac machine, Now I am getting the below error.
Tried:
I have added erm64 and x86_64 in the Excluded Architechtures. But still it fails with the below error.
If I change the Build System to New Legacy Build(Deprecated) it not works. Deleted the derived data and cleaned the project and rerun the app it not works. Also created VALID_ARCHS and added arm64 and x86_64 for local build and archive build. (Now i have deleted this)
Build input file cannot be found in Xcode 12.5.1
error: Build input file cannot be found: '/Users/jesphin/Library/Developer/Xcode/DerivedData/app-acbwzzdkvazcpfbaiyudpfvlkwyv/Build/Products/Debug-iphonesimulator/App News.app/App News' (in target 'App' from project 'App')

The build cannot be found error resolved for me in mac m1 for my case.
Add arch in the Framework which shows the error in the xcode.
Build on simulator:
Add arm64 in Exclude arch of the Target Add arm64 arm64e i386 x86_64 in valid archs of the target
Add Valid_Archs as x86_64 in the framework which shown the error
Archive Build:
Add x86_64 in Exclude arch of the Target.
Add arm64 arm64e i386 x86_64 in valid archs of the target.
Add Valid_Archs as arm64 x86_64 in the framework which shown the error