Getting error while building project with Realm pod file on Apple M1 chip

Error is : Building for iOS simulator but linking in object file built for iOS, for architechture arm64.

Getting the above issue in Xcode 13 in realm pod file and also the other own pods as well.

Anyone with Apple M1 chip having the same issue?