Kal*_*yan 4 ios cocoapods swift xcode12 xcode12.5
[!] The `SampleUITests [Prod]` target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES`
build setting defined in `Pods/Target Support Files/Pods-Sample-SampleUITests/Pods-Sample-SampleUITests.prod.xcconfig'.
This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
Run Code Online (Sandbox Code Playgroud)
当我尝试创建一个新的 xcode 项目并将 cocoa pod 添加到该项目中时,我收到上述警告。我已经尝试过What's ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES with CocoaPods、Swift 3 和 Xcode 8中提到的解决方案,但对我来说没有任何效果。
Har*_*ish 10
在某些 Xcode 版本中(在我的情况下是 12.2),当我们创建包含测试的新项目时,Xcode 将测试和 UITests 的“始终嵌入 Swift 标准库”设置为“是” ,并且它将以粗体文本显示,这表明它已被覆盖
要确认这一点,请检查项目的构建设置和目标的构建设置(如果 Xcode 已修改“始终嵌入 Swift 标准库”设置)。通常,它应该在普通文本中显示为这样(不是粗体),这意味着它没有被修改。 未修改的构建设置 某些版本的 Xcode 修改了此设置,因此它将显示在粗体文本 修改的构建设置中
为了解决这个问题,
现在尝试 pod install/pod update ,构建设置警告应该不再出现。
| 归档时间: |
|
| 查看次数: |
2647 次 |
| 最近记录: |