The libraries built contain both the X86_64 and ARM architectures, causing conflicts between the two

The solution

  1. Methods a

Set Validate Workspace to YES in the Build Setting

  1. Method 2

Thin the library so that it only supports the architecture you need, such as ARM64

lipo -thin arm64 *.a -output *_arm64.a