xcode10 error $(inherited)
問題 :
解決使用 CocoaPods 執行 pod install 時出現 – 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 ,在這個設定上加入(inherited) 。開啟專案 Target – Build Settings,依次搜尋如下圖所示的警告上提示的設定名稱,將這些設定選項全部改為 (inherited) ,或者選中這些設定按下 delete 鍵恢復原設定。然後重新執行 pod install 或者 pod update 就會發現警告消失了。
熱度: 2