While running the app from Xcode, I am getting an error as the Build input file cannot be found.
I have tried deleting the DerivedData folder entirely and re-run the app.
Added arm64 and x86_64 in the Excluded architecture. But the error is still not resolved. Any workarounds.
Note: It occurs when archiving as well as when I try to run the app in simulator as well
Showing All Errors Only
Build input file cannot be found: '/Users/name/Library/Developer/Xcode/DerivedData/application-dhdivlzaazbgnkkglsibo/Build/Products/Debug-iphonesimulator/Application.app/Application'
OS: macOS Big Sur (m1)
Version: 11.3.1