- 使用`$(inherited)`标志,或 - 从目标中删除构建设置.CocoaPod Swift3 pod更新错误

Swi*_*yJD 28 xcode ios cocoapods swift

在将Switf2项目更新到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.
Run Code Online (Sandbox Code Playgroud)

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

小智 58

  1. 目标 - >建筑设置 - > ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES,值类型为布尔值,单击另一个,将值更改为 $(inherited)
  2. 执行 - pod更新
  3. 完成


the*_*ron 14

这对我有用:

https://github.com/CocoaPods/CocoaPods/issues/5981#issuecomment-363591574

  1. 转到构建设置
  2. 搜索“运行路径搜索路径”。
  3. 双击值字段并添加 $(inherited)
  4. 产品 -> 清理构建文件夹

在终端中运行 cocoapods 命令,这次应该一切顺利。


小智 5

  1. Target -> build settings->BuildOptions->Validate Build Product,这里Debug值类型为Boolean,点击此处将值No改为YES

  2. 执行 - 构建清洁

  3. 完毕