在将SWIF2项目更新为Swift3之后,我在终端中更新cocoapods时遇到了几个奇怪的错误.以下是错误:

[!] The `MyShowGuide [Debug]` target overrides the `FRAMEWORK_SEARCH_PATHS` build setting defined in `Pods/Target Support Files/Pods-MyShowGuide/Pods-MyShowGuide.debug.xcconfig'. This can lead to problems with the CocoaPods installation
    - Use the `$(inherited)` flag, or
    - Remove the build settings from the target.

[!] The `MyShowGuide [Release]` target overrides the `FRAMEWORK_SEARCH_PATHS` build setting defined in `Pods/Target Support Files/Pods-MyShowGuide/Pods-MyShowGuide.release.xcconfig'. This can lead to problems with the CocoaPods installation
    - Use the `$(inherited)` flag, or
    - Remove the build settings from the target.

到目前为止,我已经try 了很多方法来解决这个问题,包括删除派生数据和运行pod deintegrate/ pod install.我还在Other Linker FlagsHeader Search Paths中添加了$(inherited),但仍然得到了错误.

推荐答案

  1. Target - > building settings- >ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES, Value type is Boolean, click on the other, change the value to $(inherited)
  2. 执行-pod更新
  3. 多恩

Swift相关问答推荐

{Singleton类}类型的值没有成员$showegView'

在swift静态var扩展中,如何或可以访问和返回具体类?

同步问题,发送Api Call之前未设置idToken

运行异步任务串行运行

如何防止自动状态恢复,如果应用程序被启动打开特定的文档?

查找数组中 ** 元素 ** 的属性的最小值和最大值

String.Index encodedOffset已弃用,但建议的替代方案不起作用

SwiftData/PersistentModel.swft:540:致命错误:不支持的关系密钥路径ReferenceWritableKeyPath

从任务中打印

如何使用 Swinject 注册符合 ObservableObject 的协议?

SwiftUI Grid 中的数组旋转

在 Select 器上显示alert Select SwiftUI

Swift:withCheckedContinuation 和 Dispatch QoSClass

在 Swift 中,如何查看 Process() 传递给 shell 的字符串?

组合 flatMap 不会返回预期的上下文结果类型

在 Swift 4 中实现自定义解码器

swift 3 错误:参数标签 '(_:)' 不匹配任何可用的重载

由于编译器中的内部保护级别,无法访问框架 init 中的公共 struct

<<错误类型>> 奇怪的错误

应用程序包不包含有效标识符