为什么 Cocoapods 抱怨嵌入内容在构建设置中包含 swift 设置?

Why is Cocoapods complaining about the embedded content contains swift setting in the build settings?

我最近将 swift 个文件添加到我的测试目标(结合较旧的 cocoa touch 类)。

为什么 cocoapods 抱怨嵌入内容包含构建设置中的 swift 设置?

[!] The YOURP-PROJECT-Tests [Debug] target overrides the EMBEDDED_CONTENT_CONTAINS_SWIFT build setting defined in Pods/Target Support Files/Pods-YOUR-PROJECT-Tests/Pods-YOUR-PROJECT-Tests.debug.xcconfig. This can lead to problems with the CocoaPods installation

我需要将 $(inherited) 标志添加到构建设置

如果您将 YES 替换为“$(inherited)”,它将解决 project/target EMBEDDED_CONTENT_CONTAINS_SWIFT 值中的问题。单击 Enter 后,它将显示 "YES"。 运行 再次安装 pod,问题应该会消失。