React Native on Apple Silicon M1 - The linked library 'libPods-ProjectName.a' is missing one or more architectures required by this target: x86_64
问题 I'm trying to build a React Native project on a Mac Book Pro with a M1 architecture, for iOS simulator. The project built nicely on Intel architecture. It also build on device and archive well on M1. But not on simulator. I had this classical error when switching to the M1 chipset. in /project-folder/ios/Pods/OpenSSL-Universal/ios/lib/libcrypto.a(cryptlib.o), building for iOS Simulator, but linking in object file built for iOS, file '/project-folder/ios/Pods/OpenSSL-Universal/ios/lib