Reply to building for iOS Simulator, but linking in object file built for macOS, file '..customLib.a' for architecture x86_64 https://stackoverflow.com/a/70939338/10678427 This worked for me Developer Tools & Services Xcode Feb ’22