I have the same problem. "error: Building for iOS Simulator, but the linked library 'lib.a' was built for iOS. "We have some lib only used in generic device and would not called in Simulator. It was work in Xcode 11.3, but not in Xcode 11.4.I can use the legacy build system to resolve this error. But I think it's not the good solution.