The app runs fine on the device and simulator and we are able to build an archive without any issues.
The issue is when we want to upload the build to the app store using Xcode 12.5.1, we get the following error:
App Store Connect Operation Error
No architectures in the binary. Lipo failed to detect any architectures in the bundle executable.