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')
I had exact same error message. I was able to run the project on simulator. But when I try to Product > Archive in order to submit to App Store Connect, I was given the error message.
For my case, removing extra folder that was not needed in "Development Assets" fixed the issue. I had the main folder of the app listed there for some odd reason. Deleted that and it allowed me to archive.
App > Targets > General