在終端更新pod的時候,提示警告:
target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods/Pods.debug.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
當(dāng)時沒有在意,以為更新成功了,但是打開項(xiàng)目Xcode編譯報(bào)錯,顯示找不到pod中集成的第三方的頭文件,原因可能是項(xiàng)目的Target中的頭文件的配置信息與pod中自動添加的配置信息沖突了!
解決辦法是選擇使用 CocoaPods 中的設(shè)置,在Other Linker Flags的地方用$(inherited)替換掉原來的!如圖: