cocoapods第三方库后在xcode中找不到库的问题

最近使用cocoapods导入了第三方库到工程,pod install的时候出现了warning的警告,当时以为问题不大,然后在import的时候问题来了,提示没有找到那个库,这就麻烦了我以前无数次都是这样操作的为何会import就不提示了呢?

然后我再去看看终端cocoapods的提示如下:

    [!] The `xxxxxxxx [Debug]` target overrides the `HEADER_SEARCH_PATHS` build setting defined in `Pods/Target Support Files/Pods-xxxxxxxx/Pods-xxxxxxxx.debug.xcconfig'. This can lead to problems with the CocoaPods installation

    - Use the `$(inherited)` flag, or

    - Remove the build settings from the target.

[!] The `xxxxxxxx [Debug]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods-xxxxxxxx/Pods-xxxxxxxx.debug.xcconfig'. This can lead to problems with the CocoaPods installation

    - Use the `$(inherited)` flag, or

    - Remove the build settings from the target.

[!] The `xxxxxxxx [Release]` target overrides the `HEADER_SEARCH_PATHS` build setting defined in `Pods/Target Support Files/Pods-xxxxxxxx/Pods-xxxxxxxx.release.xcconfig'. This can lead to problems with the CocoaPods installation

    - Use the `$(inherited)` flag, or

    - Remove the build settings from the target.

[!] The `xxxxxxxx [Release]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods-CCBOpenBankDemo/Pods-xxxxxxxx.release.xcconfig'. This can lead to problems with the CocoaPods installation

    - Use the `$(inherited)` flag, or

    - Remove the build settings from the target.

终端的提示已经说的很清楚了,工程里面HEADER_SEARCH_PATHS和OTHER_LDFLAGS的配置问题.

解决办法:

1.选择target(就是左边你的工程target)—— BuildSettings —— search Paths 下的 User Header Search Paths

2.双击后面的空白处

3.出现一个下拉框,点击“+”号添加一项:并且输入:“$(PODS_ROOT)”(没有引号),选择:recursive(会在相应的目录递归搜索文件)

4.选择target(就是左边你的工程target)—— BuildSettings ——搜索OTHER_LDFLAGS

5.双击后面的空白处

6.出现一个下拉框,点击“+”号添加一项:并且输入:“$(inherited)”(没有引号)

然后再推出xcode重新打开就发现可以#import出来那个库了.

   具体原因应该就是文件路径的配置问题导致的

你可能感兴趣的:(cocoapods第三方库后在xcode中找不到库的问题)