openssl, building for macOS-arm64 but attempting to link with file built for macOS-x86_64 code example
Example: building for iOS Simulator, but linking in object file built for iOS, file
I solve problem by adding "arm64" in "Excluded Architectures" for both project target and pod target.
Xcode -> Target Project -> Build Setting -> Excluded Architectures > "arm64"
Xcode -> Pod Target -> Build Setting -> Excluded Architectures > "arm64"