Ionic3: XCode 12.1 error building for iOS-armv7 but attempting to link with file built for iOS-arm64

I got this error after update XCode to version 12.1. The error can be solved by changing the target ios version from 10 to 11. However, I cannot change the target ios version to 11 because some of my users still use ios 10.

Is there any way to set XCode parameter(s) to resolve this error when target ios version is set to 10?