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
- Use the `$(inherited)` flag, or - Remove the build settings from the target. CocoaPod Swift3 pod update error
提问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 Flags
and Header Search Paths
but still get the error.
到目前为止,我已经尝试了多种方法来尝试解决该问题,包括删除派生数据和运行pod deintegrate/ pod install
. 我也添加$(inherited)
到 Other Linker Flags
andHeader Search Paths
但仍然得到错误。
回答by Tim
- Target - > building settings- >
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES
, Value type is Boolean, click on the other, change the value to$(inherited)
- perform - pod update
- Done
- Target -> building settings->
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES
,值类型为布尔型,点击其他,将值改为$(inherited)
- 执行 - pod 更新
- 完毕
回答by manu george
Target - > build settings- > BuildOptions-> Validate Build Product, Here the Debug value type is Boolean, Click here to change the value No to YES
Perform - Build Clean
Done
Target -> build settings-> BuildOptions-> Validate Build Product,这里Debug值类型是Boolean,点这里把No改成YES
执行 - 构建干净
完毕
回答by thechargedneutron
This worked for me:
这对我有用:
https://github.com/CocoaPods/CocoaPods/issues/5981#issuecomment-363591574
https://github.com/CocoaPods/CocoaPods/issues/5981#issuecomment-363591574
- Go to Build Settings
- Search for "Runpath Search Paths".
- Double click the value field and add
$(inherited)
- Product -> Clean Build Folder
- 转到构建设置
- 搜索“运行路径搜索路径”。
- 双击值字段并添加
$(inherited)
- 产品 -> 清理构建文件夹
Run the cocoapods command in the terminal and things should go fine this time.
在终端中运行 cocoapods 命令,这次应该一切顺利。