原文:
問題 :
解決使用 CocoaPods 執(zhí)行 pod install 時出現(xiàn) - Use the $(inherited)
flag ... 警告[!]
[!] The `project [Debug]` target overrides the `HEADER_SEARCH_PATHS` build setting defined in `Pods/Target Support Files/Pods-PhotoWonder/Pods-PhotoWonder.debug.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
[!] The `project [Debug]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods-PhotoWonder/Pods-PhotoWonder.debug.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
[!] The `project [Release]` target overrides the `HEADER_SEARCH_PATHS` build setting defined in `Pods/Target Support Files/Pods-PhotoWonder/Pods-PhotoWonder.release.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
[!] The `project [Release]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods-PhotoWonder/Pods-PhotoWonder.release.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
解決方法
打開項目 Target - Build Settings ,
搜索 Other Linker Flags ,在這個設(shè)置上加入 $(inherited) 。
打開項目 Target - Build Settings,依次搜索如下圖所示的警告上提示的設(shè)置名稱,將這些設(shè)置選項全部改為 $(inherited) 。
然后重新執(zhí)行 pod install 或者 pod update 就會發(fā)現(xiàn)警告消失了轻局。