无法从模块接口构建模块

dev*_*999 5 xcode objective-c ios swift5 xcode12

我已将第三方 Pod 添加到我的项目中。虽然我可以在调试目标中很好地构建应用程序。一旦我尝试使用发布目标构建我的项目,我就会收到此构建错误。

Failed to build module 'XXXX' from its module interface; the compiler that produced it, 'Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53)', may have used features that aren't supported by this compiler, 'Apple Swift version 5.4 (swiftlang-1205.0.26.9 clang-1205.0.19.55)'

我不知道为什么它只在发布目标上出现这个问题,而在调试目标上却没有。

这里任何形式的帮助都会非常有帮助。我使用的是 Xcode 12.5