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

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/40599454/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-31 10:47:33  来源:igfitidea点击:

- Use the `$(inherited)` flag, or - Remove the build settings from the target. CocoaPod Swift3 pod update error

iosswiftxcodecocoapods

提问by SwiftyJD

I've been running into a couple of strange errors in terminal when updating cocoapods after updating a Switf2 project to Swift3. Here are the errors:

在将 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.

So far I've tried numerous ways to try and remedy the issue including deleting derived data and running pod deintegrate/ pod install. I also added $(inherited)to the Other Linker Flagsand Header Search Pathsbut still get the error.

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

回答by Tim

  1. Target - > building settings- >ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES, Value type is Boolean, click on the other, change the value to $(inherited)
  2. perform - pod update
  3. Done
  1. Target -> building settings-> ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES,值类型为布尔型,点击其他,将值改为 $(inherited)
  2. 执行 - pod 更新
  3. 完毕

回答by manu george

  1. Target - > build settings- > BuildOptions-> Validate Build Product, Here the Debug value type is Boolean, Click here to change the value No to YES

  2. Perform - Build Clean

  3. Done

  1. Target -> build settings-> BuildOptions-> Validate Build Product,这里Debug值类型是Boolean,点这里把No改成YES

  2. 执行 - 构建干净

  3. 完毕

回答by thechargedneutron

This worked for me:

这对我有用:

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

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

  1. Go to Build Settings
  2. Search for "Runpath Search Paths".
  3. Double click the value field and add $(inherited)
  4. Product -> Clean Build Folder
  1. 转到构建设置
  2. 搜索“运行路径搜索路径”。
  3. 双击值字段并添加 $(inherited)
  4. 产品 -> 清理构建文件夹

Run the cocoapods command in the terminal and things should go fine this time.

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